C# Class NGUITransformInspector, TheUnseen

Inheritance: Editor
Show file Open project: henryj41043/TheUnseen Class Usage Examples

Public Methods

Method Description
OnInspectorGUI ( ) : void

Draw the inspector widget.

Private Methods

Method Description
DrawButton ( string title, string tooltip, bool enabled, float width ) : bool

Helper function that draws a button in an enabled or disabled state.

DrawVector3 ( Vector3 value ) : Vector3

Helper function that draws a field of 3 floats.

IsResetPositionValid ( Transform targetTransform ) : bool

Helper function that determines whether its worth it to show the reset position button.

IsResetRotationValid ( Transform targetTransform ) : bool

Helper function that determines whether its worth it to show the reset rotation button.

IsResetScaleValid ( Transform targetTransform ) : bool

Helper function that determines whether its worth it to show the reset scale button.

Validate ( Vector3 vector ) : Vector3

Helper function that removes not-a-number values from the vector.

Method Details

OnInspectorGUI() public method

Draw the inspector widget.
public OnInspectorGUI ( ) : void
return void