C# Class GUIExt, csg-toolkit

Mostra file Open project: dlannan/csg-toolkit Class Usage Examples

Public Methods

Method Description
FloatField ( GUIContent label, float value, object callingObj ) : float

Mimics UnityEditor.EditorGUILayout.FloatField by taking a label and a float and returning the edited float.

ObjectField ( GUIContent label, GameObject value, object callingObj ) : Object
ObjectField ( GameObject value, object callingObj ) : Object
TextField ( GUIContent label, string text ) : string

Mimic's UnityEditor.EditorGUILayout.TextField in taking a label and a string and returning the edited string.

Private Methods

Method Description
FloatField ( float value, object callingObj ) : float

Method Details

FloatField() public static method

Mimics UnityEditor.EditorGUILayout.FloatField by taking a label and a float and returning the edited float.
public static FloatField ( GUIContent label, float value, object callingObj ) : float
label GUIContent
value float
callingObj object
return float

ObjectField() public static method

public static ObjectField ( GUIContent label, GameObject value, object callingObj ) : Object
label GUIContent
value GameObject
callingObj object
return Object

ObjectField() public static method

public static ObjectField ( GameObject value, object callingObj ) : Object
value GameObject
callingObj object
return Object

TextField() public static method

Mimic's UnityEditor.EditorGUILayout.TextField in taking a label and a string and returning the edited string.
public static TextField ( GUIContent label, string text ) : string
label GUIContent
text string
return string