C# 클래스 UIWidgetInspector, DsynBio

상속: UIRectEditor
파일 보기 프로젝트 열기: CyberCRI/DsynBio 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
mUseShader bool
mWidget UIWidget,

공개 메소드들

메소드 설명
OnInspectorGUI ( ) : void

Draw the inspector widget.

OnSceneGUI ( ) : void

Draw the on-screen selection, knobs, and handle all interaction logic.

보호된 메소드들

메소드 설명
DrawCommonProperties ( ) : void

All widgets have depth, color and make pixel-perfect options

DrawExtraProperties ( ) : void
DrawProperties ( ) : bool
OnInit ( ) : void

Any and all derived functionality.

비공개 메소드들

메소드 설명
AdjustPosAndScale ( UIWidget, w, Vector3 startLocalPos, Vector3 startLocalScale, Vector3 worldDelta, UIWidget, dragPivot ) : void

Adjust the transform's position and scale.

AdjustWidget ( UIWidget, w, Vector3 pos, Vector3 scale, float left, float top, float right, float bottom, bool makeSquare ) : void

Adjust the widget's rectangle based on the specified modifier values.

Combine ( UIWidget, horizontal, UIWidget, vertical ) : UIWidget.Pivot
DrawKnob ( Vector3 point, bool selected, int id ) : void

Draw a control dot at the specified world position.

GetHorizontal ( UIWidget, pivot ) : UIWidget.Pivot
GetScreenDistance ( Vector3 worldPos, Vector2 mousePos ) : float

Screen-space distance from the mouse position to the specified world position.

GetScreenDistance ( Vector3 worldPoints, Vector2 mousePos, int &index ) : float

Closest screen-space distance from the mouse position to one of the specified world points.

GetVertical ( UIWidget, pivot ) : UIWidget.Pivot
IsBottom ( UIWidget, pivot ) : bool
IsLeft ( UIWidget, pivot ) : bool
IsMouseOverRect ( Vector2 mouse, List rects ) : bool

Whether the mouse position is within one of the specified rectangles.

IsRight ( UIWidget, pivot ) : bool
IsTop ( UIWidget, pivot ) : bool
Raycast ( UIWidget, widget, Vector2 mousePos ) : UIWidget[],

Raycast into the screen, returning an array of widgets.

Raycast ( Vector3 corners, Vector3 &hit ) : bool

Raycast into the screen.

RegisterUndo ( ) : void

Register an Undo command with the Unity editor.

SetCursorRect ( Rect rect, MouseCursor, cursor ) : void

Set the mouse cursor rectangle, refreshing the screen when it gets changed.

SetPivot ( UIWidget, pivot, bool isHorizontal ) : void
Toggle ( string text, string style, UIWidget, pivot, bool isHorizontal ) : void

Draw a toggle button for the pivot point.

메소드 상세

DrawCommonProperties() 보호된 메소드

All widgets have depth, color and make pixel-perfect options
protected DrawCommonProperties ( ) : void
리턴 void

DrawExtraProperties() 보호된 메소드

protected DrawExtraProperties ( ) : void
리턴 void

DrawProperties() 보호된 메소드

protected DrawProperties ( ) : bool
리턴 bool

OnInit() 보호된 메소드

Any and all derived functionality.
protected OnInit ( ) : void
리턴 void

OnInspectorGUI() 공개 메소드

Draw the inspector widget.
public OnInspectorGUI ( ) : void
리턴 void

OnSceneGUI() 공개 메소드

Draw the on-screen selection, knobs, and handle all interaction logic.
public OnSceneGUI ( ) : void
리턴 void

프로퍼티 상세

mUseShader 보호되어 있는 정적으로 프로퍼티

protected static bool mUseShader
리턴 bool

mWidget 보호되어 있는 프로퍼티

protected UIWidget, mWidget
리턴 UIWidget,