Class StoryBookEnumProperty<T>
This class defines a Enum property for a StoryBookComponent.
Inherited Members
Namespace: Unity.AppUI.Editor
Assembly: Unity.AppUI.Editor.dll
Syntax
public class StoryBookEnumProperty<T> : StoryBookComponentProperty where T : Enum
Type Parameters
Name | Description |
---|---|
T | The type of the Enum. |
Constructors
StoryBookEnumProperty(string, Func<VisualElement, T>, Action<VisualElement, T>)
Constructor.
Declaration
public StoryBookEnumProperty(string name, Func<VisualElement, T> getter, Action<VisualElement, T> setter)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the property. |
Func<VisualElement, T> | getter | The getter of the property. |
Action<VisualElement, T> | setter | The setter of the property. |
Properties
getter
The getter of the property.
Declaration
public Func<VisualElement, T> getter { get; set; }
Property Value
Type | Description |
---|---|
Func<VisualElement, T> |
setter
The setter of the property.
Declaration
public Action<VisualElement, T> setter { get; set; }
Property Value
Type | Description |
---|---|
Action<VisualElement, T> |