C# 클래스 Microsoft.MixedReality.Toolkit.Utilities.Editor.MixedRealityInspectorUtility

This class has handy inspector utilities and functions.
파일 보기 프로젝트 열기: microsoft/MixedReality-WorldLockingTools-Samples 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DarkColor Color
DisabledColor Color
ErrorColor Color
HandleColorAxis Color
HandleColorCircle Color
HandleColorRotation Color
HandleColorSphere Color
HandleColorSquare Color
HandleColorTangent Color
LineVelocityColor Color
LogoDarkTheme Texture2D
LogoLightTheme Texture2D
SectionColor Color
SuccessColor Color
WarningColor Color

공개 메소드들

메소드 설명
AddMixedRealityToolkitToScene ( MixedRealityToolkitConfigurationProfile configProfile = null, bool inPlayMode = false ) : void

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

AxisMoveHandle ( Object target, Vector3 origin, Vector3 direction, float distance, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : float

Draw an axis move handle.

CenterOnMainWin ( EditorWindow window ) : void

Centers an editor window on the main display.

CheckMixedRealityConfigured ( bool renderEditorElements = false ) : bool

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

CircleMoveHandle ( Object target, Vector3 position, float xScale = 1f, float yScale = 1f, float zScale = 1f, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : Vector3

Draw a Circle Move Handle.

DrawProfileDropDownList ( SerializedProperty property, BaseMixedRealityProfile profile, Object oldProfileObject, Array profileTypes, bool requiresProfile, bool showAddButton ) : bool

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

DrawProfileDropDownList ( SerializedProperty property, BaseMixedRealityProfile profile, Object oldProfileObject, Type profileType, bool requiresProfile, bool showAddButton ) : bool

Draws a dropdown with all available profiles of profilyType.

DrawSubProfileEditor ( Object profileObject, bool renderProfileInBox ) : void

Draws an editor for a profile object.

GetDefaultConfigProfile ( ) : MixedRealityToolkitConfigurationProfile

Returns the default config profile, if it exists.

GetDefaultConfigProfile ( Array allProfiles ) : MixedRealityToolkitConfigurationProfile

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

GetEditorMainWindowPos ( ) : Rect

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

RenderMixedRealityToolkitLogo ( ) : void

Render the Mixed Reality Toolkit Logo.

RotationHandle ( Object target, Vector3 position, Quaternion rotation, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : Quaternion

Draw a rotation handle.

SphereMoveHandle ( Object target, Vector3 position, float xScale = 1f, float yScale = 1f, float zScale = 1f, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : Vector3

Draw a sphere move handle.

SquareMoveHandle ( Object target, Vector3 position, float xScale = 1f, float yScale = 1f, float zScale = 1f, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : Vector3

Draw a square move handle.

VectorHandle ( Object target, Vector3 origin, Vector3 vector, bool normalize = true, bool clamp = true, float handleLength = 1f, float handleSize = 0.1f, bool recordUndo = true, bool autoSize = true ) : Vector3

Draw a vector handle.

비공개 메소드들

메소드 설명
GetAllDerivedTypes ( AppDomain appDomain, Type aType ) : Type[]

메소드 상세

AddMixedRealityToolkitToScene() 공개 정적인 메소드

If MRTK is not initialized in scene, adds and initializes instance to current scene
public static AddMixedRealityToolkitToScene ( MixedRealityToolkitConfigurationProfile configProfile = null, bool inPlayMode = false ) : void
configProfile MixedRealityToolkitConfigurationProfile
inPlayMode bool
리턴 void

AxisMoveHandle() 공개 정적인 메소드

Draw an axis move handle.
public static AxisMoveHandle ( Object target, Vector3 origin, Vector3 direction, float distance, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : float
target UnityEngine.Object Object that is undergoing the transformation. Also used for recording undo.
origin Vector3 The initial position of the axis.
direction Vector3 The direction the axis is facing.
distance float Distance from the axis.
handleSize float Optional handle size.
autoSize bool Optional, auto sizes the handles based on position and handle size.
recordUndo bool Optional, records undo state.
리턴 float

CenterOnMainWin() 공개 정적인 메소드

Centers an editor window on the main display.
public static CenterOnMainWin ( EditorWindow window ) : void
window EditorWindow
리턴 void

CheckMixedRealityConfigured() 공개 정적인 메소드

Check and make sure we have a Mixed Reality Toolkit and an active profile.
public static CheckMixedRealityConfigured ( bool renderEditorElements = false ) : bool
renderEditorElements bool
리턴 bool

CircleMoveHandle() 공개 정적인 메소드

Draw a Circle Move Handle.
public static CircleMoveHandle ( Object target, Vector3 position, float xScale = 1f, float yScale = 1f, float zScale = 1f, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : Vector3
target UnityEngine.Object Object that is undergoing the transformation. Also used for recording undo.
position Vector3 The position to draw the handle.
xScale float Scale the new value on the x axis by this amount.
yScale float Scale the new value on the x axis by this amount.
zScale float Scale the new value on the x axis by this amount.
handleSize float Optional handle size.
autoSize bool Optional, auto sizes the handles based on position and handle size.
recordUndo bool Optional, records undo state.
리턴 Vector3

DrawProfileDropDownList() 공개 정적인 메소드

Draws a dropdown with all available profiles of types contained in the array profilyTypes.
public static DrawProfileDropDownList ( SerializedProperty property, BaseMixedRealityProfile profile, Object oldProfileObject, Array profileTypes, bool requiresProfile, bool showAddButton ) : bool
property SerializedProperty
profile BaseMixedRealityProfile
oldProfileObject UnityEngine.Object
profileTypes Array
requiresProfile bool
showAddButton bool
리턴 bool

DrawProfileDropDownList() 공개 정적인 메소드

Draws a dropdown with all available profiles of profilyType.
public static DrawProfileDropDownList ( SerializedProperty property, BaseMixedRealityProfile profile, Object oldProfileObject, Type profileType, bool requiresProfile, bool showAddButton ) : bool
property SerializedProperty
profile BaseMixedRealityProfile
oldProfileObject UnityEngine.Object
profileType Type
requiresProfile bool
showAddButton bool
리턴 bool

DrawSubProfileEditor() 공개 정적인 메소드

Draws an editor for a profile object.
public static DrawSubProfileEditor ( Object profileObject, bool renderProfileInBox ) : void
profileObject UnityEngine.Object
renderProfileInBox bool
리턴 void

GetDefaultConfigProfile() 공개 정적인 메소드

Returns the default config profile, if it exists.
public static GetDefaultConfigProfile ( ) : MixedRealityToolkitConfigurationProfile
리턴 MixedRealityToolkitConfigurationProfile

GetDefaultConfigProfile() 공개 정적인 메소드

Given a list of MixedRealityToolkitConfigurationProfile objects, returns the one that matches the default profile name.
public static GetDefaultConfigProfile ( Array allProfiles ) : MixedRealityToolkitConfigurationProfile
allProfiles Array
리턴 MixedRealityToolkitConfigurationProfile

GetEditorMainWindowPos() 공개 정적인 메소드

Found at https://answers.unity.com/questions/960413/editor-window-how-to-center-a-window.html
public static GetEditorMainWindowPos ( ) : Rect
리턴 Rect

RenderMixedRealityToolkitLogo() 공개 정적인 메소드

Render the Mixed Reality Toolkit Logo.
public static RenderMixedRealityToolkitLogo ( ) : void
리턴 void

RotationHandle() 공개 정적인 메소드

Draw a rotation handle.
public static RotationHandle ( Object target, Vector3 position, Quaternion rotation, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : Quaternion
target UnityEngine.Object Object that is undergoing the transformation. Also used for recording undo.
position Vector3 The position to draw the handle.
rotation Quaternion The rotation to draw the handle.
handleSize float Optional, handle size.
autoSize bool Optional, auto sizes the handles based on position and handle size.
recordUndo bool Optional, records undo state.
리턴 Quaternion

SphereMoveHandle() 공개 정적인 메소드

Draw a sphere move handle.
public static SphereMoveHandle ( Object target, Vector3 position, float xScale = 1f, float yScale = 1f, float zScale = 1f, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : Vector3
target UnityEngine.Object Object that is undergoing the transformation. Also used for recording undo.
position Vector3 The position to draw the handle.
xScale float Scale the new value on the x axis by this amount.
yScale float Scale the new value on the x axis by this amount.
zScale float Scale the new value on the x axis by this amount.
handleSize float Optional handle size.
autoSize bool Optional, auto sizes the handles based on position and handle size.
recordUndo bool Optional, records undo state.
리턴 Vector3

SquareMoveHandle() 공개 정적인 메소드

Draw a square move handle.
public static SquareMoveHandle ( Object target, Vector3 position, float xScale = 1f, float yScale = 1f, float zScale = 1f, float handleSize = 0.2f, bool autoSize = true, bool recordUndo = true ) : Vector3
target UnityEngine.Object Object that is undergoing the transformation. Also used for recording undo.
position Vector3 The position to draw the handle.
xScale float Scale the new value on the x axis by this amount.
yScale float Scale the new value on the x axis by this amount.
zScale float Scale the new value on the x axis by this amount.
handleSize float Optional handle size.
autoSize bool Optional, auto sizes the handles based on position and handle size.
recordUndo bool Optional, records undo state.
리턴 Vector3

VectorHandle() 공개 정적인 메소드

Draw a vector handle.
public static VectorHandle ( Object target, Vector3 origin, Vector3 vector, bool normalize = true, bool clamp = true, float handleLength = 1f, float handleSize = 0.1f, bool recordUndo = true, bool autoSize = true ) : Vector3
target UnityEngine.Object Object that is undergoing the transformation. Also used for recording undo.
origin Vector3
vector Vector3
normalize bool Optional, Normalize the new vector value.
clamp bool Optional, Clamp new vector's value based on the distance to the origin.
handleLength float Optional, handle length.
handleSize float Optional, handle size.
recordUndo bool Optional, records undo state.
autoSize bool Optional, auto sizes the handles based on position and handle size.
리턴 Vector3

프로퍼티 상세

DarkColor 공개적으로 정적으로 프로퍼티

public static Color DarkColor
리턴 Color

DisabledColor 공개적으로 정적으로 프로퍼티

public static Color DisabledColor
리턴 Color

ErrorColor 공개적으로 정적으로 프로퍼티

public static Color ErrorColor
리턴 Color

HandleColorAxis 공개적으로 정적으로 프로퍼티

public static Color HandleColorAxis
리턴 Color

HandleColorCircle 공개적으로 정적으로 프로퍼티

public static Color HandleColorCircle
리턴 Color

HandleColorRotation 공개적으로 정적으로 프로퍼티

public static Color HandleColorRotation
리턴 Color

HandleColorSphere 공개적으로 정적으로 프로퍼티

public static Color HandleColorSphere
리턴 Color

HandleColorSquare 공개적으로 정적으로 프로퍼티

public static Color HandleColorSquare
리턴 Color

HandleColorTangent 공개적으로 정적으로 프로퍼티

public static Color HandleColorTangent
리턴 Color

LineVelocityColor 공개적으로 정적으로 프로퍼티

public static Color LineVelocityColor
리턴 Color

LogoDarkTheme 공개적으로 정적으로 프로퍼티

public static Texture2D LogoDarkTheme
리턴 Texture2D

LogoLightTheme 공개적으로 정적으로 프로퍼티

public static Texture2D LogoLightTheme
리턴 Texture2D

SectionColor 공개적으로 정적으로 프로퍼티

public static Color SectionColor
리턴 Color

SuccessColor 공개적으로 정적으로 프로퍼티

public static Color SuccessColor
리턴 Color

WarningColor 공개적으로 정적으로 프로퍼티

public static Color WarningColor
리턴 Color