Class FieldFactory
Inheritance
System.Object
FieldFactory
Assembly: com.alelievr.NodeGraphProcessor.Editor.dll
Syntax
public static class FieldFactory
Methods
|
Improve this Doc
View Source
CreateField(Type, Object, Action<Object>, String)
Declaration
public static VisualElement CreateField(Type fieldType, object value, Action<object> onValueChanged, string label)
Parameters
| Type |
Name |
Description |
| System.Type |
fieldType |
|
| System.Object |
value |
|
| System.Action<System.Object> |
onValueChanged |
|
| System.String |
label |
|
Returns
| Type |
Description |
| UnityEngine.UIElements.VisualElement |
|
|
Improve this Doc
View Source
CreateField(Type, String)
Declaration
public static VisualElement CreateField(Type t, string label)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
| System.String |
label |
|
Returns
| Type |
Description |
| UnityEngine.UIElements.VisualElement |
|
|
Improve this Doc
View Source
CreateField<T>(T, String)
Declaration
public static INotifyValueChanged<T> CreateField<T>(T value, string label = null)
Parameters
| Type |
Name |
Description |
| T |
value |
|
| System.String |
label |
|
Returns
| Type |
Description |
| UnityEngine.UIElements.INotifyValueChanged<T> |
|
Type Parameters
|
Improve this Doc
View Source
CreateFieldSpecific<T>(T, Action<Object>, String)
Declaration
public static INotifyValueChanged<T> CreateFieldSpecific<T>(T value, Action<object> onValueChanged, string label)
Parameters
| Type |
Name |
Description |
| T |
value |
|
| System.Action<System.Object> |
onValueChanged |
|
| System.String |
label |
|
Returns
| Type |
Description |
| UnityEngine.UIElements.INotifyValueChanged<T> |
|
Type Parameters