|
static void | DynamicPopup (Type baseClass, bool IsAbstract, Type inputValue, Action< Type > onValueChanged, GUIContent label, MonoBehaviour Target, Func< Type, bool > filter=null) |
| Use reflection to display a list of implementation of a Base class as a popup in an Inspector view.
|
|
static void | DynamicOptionalPopup (Type baseClass, bool IsAbstract, Type inputValue, Action< Type > onValueChanged, GUIContent label, MonoBehaviour Target, Func< Type, bool > filter=null) |
| Use reflection to display a list of implementation of a Base class as a popup in an Inspector view. Adds a "None" option.
|
|
static void | DynamicConstField (Type baseClass, string inputValue, Action< string > onValueChanged, GUIContent label, MonoBehaviour Target) |
| Add a dynamic constant field.
|
|
static void | DynamicReflectionField (Type configClass, string methodOptions, string inputValue, Action< string > onValueChanged, GUIContent label, MonoBehaviour Target) |
| Add a dynamic reflection field. Uses reflection to display a list of options defined by a class attribute.
|
|
static void | DynamicObjectField (Type baseClass, UnityEngine.Object inputValue, Action< UnityEngine.Object > onValueChanged, GUIContent label, MonoBehaviour Target) |
| Dynamic field for a UnityEngine.Object.
|
|
static void | ShowDesc (Type value, bool wide=false) |
| Display a Help box with the description of class using the AvatarReadyNameAttribute description.
|
|
◆ DynamicPopup()
static void Inria.Avatar.AvatarReady.UIEditorUtils.DynamicPopup |
( |
Type | baseClass, |
|
|
bool | IsAbstract, |
|
|
Type | inputValue, |
|
|
Action< Type > | onValueChanged, |
|
|
GUIContent | label, |
|
|
MonoBehaviour | Target, |
|
|
Func< Type, bool > | filter = null ) |
|
inlinestatic |
Use reflection to display a list of implementation of a Base class as a popup in an Inspector view.
- Parameters
-
baseClass | Type of the base class |
IsAbstract | Display abstract classes |
inputValue | Initial value |
onValueChanged | Callback when new value is set |
label | Displayed Label |
Target | Target component |
filter | Filter available options |
◆ DynamicOptionalPopup()
static void Inria.Avatar.AvatarReady.UIEditorUtils.DynamicOptionalPopup |
( |
Type | baseClass, |
|
|
bool | IsAbstract, |
|
|
Type | inputValue, |
|
|
Action< Type > | onValueChanged, |
|
|
GUIContent | label, |
|
|
MonoBehaviour | Target, |
|
|
Func< Type, bool > | filter = null ) |
|
inlinestatic |
Use reflection to display a list of implementation of a Base class as a popup in an Inspector view. Adds a "None" option.
- Parameters
-
baseClass | Type of the base class |
IsAbstract | Display abstract classes |
inputValue | Initial value |
onValueChanged | Callback when new value is set |
label | Displayed Label |
Target | Target component |
filter | Filter available options |
◆ DynamicConstField()
static void Inria.Avatar.AvatarReady.UIEditorUtils.DynamicConstField |
( |
Type | baseClass, |
|
|
string | inputValue, |
|
|
Action< string > | onValueChanged, |
|
|
GUIContent | label, |
|
|
MonoBehaviour | Target ) |
|
inlinestatic |
Add a dynamic constant field.
- Parameters
-
baseClass | Type of the field. Available types are: Enum, bool, int, float, double, string |
inputValue | Initial value |
onValueChanged | Callback when new value is set |
label | Displayed Label |
Target | Target component |
- Exceptions
-
NotSupportedException | Throw NotSupportedException if baseClass is not of supported type |
◆ DynamicReflectionField()
static void Inria.Avatar.AvatarReady.UIEditorUtils.DynamicReflectionField |
( |
Type | configClass, |
|
|
string | methodOptions, |
|
|
string | inputValue, |
|
|
Action< string > | onValueChanged, |
|
|
GUIContent | label, |
|
|
MonoBehaviour | Target ) |
|
inlinestatic |
Add a dynamic reflection field. Uses reflection to display a list of options defined by a class attribute.
- Parameters
-
configClass | Class containing the AvatarReadyReflectionOption attribute |
methodOptions | Name of the attribute |
inputValue | Initial value |
onValueChanged | Callback when new value is set |
label | Displayed Label |
Target | Target component |
- Exceptions
-
InvalidOperationException | |
◆ DynamicObjectField()
static void Inria.Avatar.AvatarReady.UIEditorUtils.DynamicObjectField |
( |
Type | baseClass, |
|
|
UnityEngine.Object | inputValue, |
|
|
Action< UnityEngine.Object > | onValueChanged, |
|
|
GUIContent | label, |
|
|
MonoBehaviour | Target ) |
|
inlinestatic |
Dynamic field for a UnityEngine.Object.
- Parameters
-
baseClass | Type of Unity object |
inputValue | Initial value |
onValueChanged | Callback when new value is set |
label | Displayed Label |
Target | Target component |
◆ ShowDesc()
static void Inria.Avatar.AvatarReady.UIEditorUtils.ShowDesc |
( |
Type | value, |
|
|
bool | wide = false ) |
|
inlinestatic |
The documentation for this class was generated from the following file: