C# Class NGUITransformInspector, TheUnseen

Inheritance: Editor
Afficher le fichier Open project: henryj41043/TheUnseen Class Usage Examples

Méthodes publiques

Méthode Description
OnInspectorGUI ( ) : void

Draw the inspector widget.

Private Methods

Méthode 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 méthode

Draw the inspector widget.
public OnInspectorGUI ( ) : void
Résultat void