C# Class EditorGUIExtension, UnityFramework

显示文件 Open project: meta-42/uEasyKit Class Usage Examples

Public Methods

Method Description
ArrayField ( UnityEditor.SerializedProperty property ) : void
ArrayFoldout ( string label, string array, bool &foldout ) : string[]
EnumComboBox ( Enum selected ) : Enum
EnumComboBox ( string label, Enum selected ) : Enum
EnumToolbar ( Enum selected ) : Enum
FileSelector ( string name, string path, string extension ) : string
FolderSelector ( string name, string path ) : string
OpenPopup ( string text, string trueText, string falseText, Action onChosen ) : void
ToggleButton ( bool state, string label ) : bool

Private Methods

Method Description
BuildStyle ( ) : void

Method Details

ArrayField() public static method

public static ArrayField ( UnityEditor.SerializedProperty property ) : void
property UnityEditor.SerializedProperty
return void

ArrayFoldout() public static method

public static ArrayFoldout ( string label, string array, bool &foldout ) : string[]
label string
array string
foldout bool
return string[]

EnumComboBox() public static method

public static EnumComboBox ( Enum selected ) : Enum
selected Enum
return Enum

EnumComboBox() public static method

public static EnumComboBox ( string label, Enum selected ) : Enum
label string
selected Enum
return Enum

EnumToolbar() public static method

public static EnumToolbar ( Enum selected ) : Enum
selected Enum
return Enum

FileSelector() public static method

public static FileSelector ( string name, string path, string extension ) : string
name string
path string
extension string
return string

FolderSelector() public static method

public static FolderSelector ( string name, string path ) : string
name string
path string
return string

OpenPopup() public static method

public static OpenPopup ( string text, string trueText, string falseText, Action onChosen ) : void
text string
trueText string
falseText string
onChosen Action
return void

ToggleButton() public static method

public static ToggleButton ( bool state, string label ) : bool
state bool
label string
return bool