AvatarReady
Loading...
Searching...
No Matches
Inria.Avatar.AvatarReady.UIEditorUtils Class Reference
Inheritance diagram for Inria.Avatar.AvatarReady.UIEditorUtils:

Static Public Member Functions

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.
 

Member Function Documentation

◆ 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
baseClassType of the base class
IsAbstractDisplay abstract classes
inputValueInitial value
onValueChangedCallback when new value is set
labelDisplayed Label
TargetTarget component
filterFilter 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
baseClassType of the base class
IsAbstractDisplay abstract classes
inputValueInitial value
onValueChangedCallback when new value is set
labelDisplayed Label
TargetTarget component
filterFilter 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
baseClassType of the field. Available types are: Enum, bool, int, float, double, string
inputValueInitial value
onValueChangedCallback when new value is set
labelDisplayed Label
TargetTarget component
Exceptions
NotSupportedExceptionThrow 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
configClassClass containing the AvatarReadyReflectionOption attribute
methodOptionsName of the attribute
inputValueInitial value
onValueChangedCallback when new value is set
labelDisplayed Label
TargetTarget 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
baseClassType of Unity object
inputValueInitial value
onValueChangedCallback when new value is set
labelDisplayed Label
TargetTarget component

◆ ShowDesc()

static void Inria.Avatar.AvatarReady.UIEditorUtils.ShowDesc ( Type value,
bool wide = false )
inlinestatic

Display a Help box with the description of class using the AvatarReadyNameAttribute description.

Parameters
value
wide

The documentation for this class was generated from the following file: