編集

次の方法で共有


MixedRealityInspectorUtility Class

Definition

This class has handy inspector utilities and functions.

public ref class MixedRealityInspectorUtility abstract sealed
public static class MixedRealityInspectorUtility
type MixedRealityInspectorUtility = class
Public Module MixedRealityInspectorUtility
Inheritance
MixedRealityInspectorUtility

Fields

DarkColor
DefaultConfigProfileName
DisabledColor
DottedLineScreenSpace
ErrorColor
HandleColorAxis
HandleColorCircle
HandleColorRotation
HandleColorSphere
HandleColorSquare
HandleColorTangent
LineVelocityColor
LogoDarkTheme
LogoLightTheme
SectionColor
SuccessColor
WarningColor

Properties

DefaultBackgroundColor

Methods

AddMixedRealityToolkitToScene(MixedRealityToolkitConfigurationProfile, Boolean)

If MRTK is not initialized in scene, adds and initializes instance to current scene

AddMixedRealityToolkitToScene(MixedRealityToolkitConfigurationProfile)

If MRTK is not initialized in scene, adds and initializes instance to current scene

AxisMoveHandle(Object, Vector3, Vector3, Single, Single, Boolean, Boolean)

Draw an axis move handle.

CenterOnMainWin(EditorWindow)

Centers an editor window on the main display.

CheckMixedRealityConfigured(Boolean)

Check and make sure we have a Mixed Reality Toolkit and an active profile.

CircleMoveHandle(Object, Vector3, Single, Single, Single, Single, Boolean, Boolean)

Draw a Circle Move Handle.

DrawProfileDropDownList(SerializedProperty, BaseMixedRealityProfile, Object, Type, Boolean, Boolean)

Draws a dropdown with all available profiles of profilyType.

DrawProfileDropDownList(SerializedProperty, BaseMixedRealityProfile, Object, Type, Boolean)

Draws a dropdown with all available profiles of profilyType.

DrawProfileDropDownList(SerializedProperty, BaseMixedRealityProfile, Object, Type[], Boolean, Boolean)

Draws a dropdown with all available profiles of types contained in the array profilyTypes.

DrawSubProfileEditor(Object, Boolean)

Draws an editor for a profile object.

GetDefaultConfigProfile()

Returns the default config profile, if it exists.

GetDefaultConfigProfile(MixedRealityToolkitConfigurationProfile[])

Given a list of MixedRealityToolkitConfigurationProfile objects, returns the one that matches the default profile name.

GetEditorMainWindowPos()

Found at https://answers.unity.com/questions/960413/editor-window-how-to-center-a-window.html

RenderMixedRealityToolkitLogo()

Render the Mixed Reality Toolkit Logo.

RotationHandle(Object, Vector3, Quaternion, Single, Boolean, Boolean)

Draw a rotation handle.

SphereMoveHandle(Object, Vector3, Single, Single, Single, Single, Boolean, Boolean)

Draw a sphere move handle.

SquareMoveHandle(Object, Vector3, Single, Single, Single, Single, Boolean, Boolean)

Draw a square move handle.

VectorHandle(Object, Vector3, Vector3, Boolean, Boolean, Single, Single, Boolean, Boolean)

Draw a vector handle.

Applies to