Class DebugUI.Field<T>
Generic field - will be serialized in the editor if it's not read-only
Implements
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public abstract class DebugUI.Field<T> : DebugUI.Widget, DebugUI.IValueField
Type Parameters
Name | Description |
---|---|
T | The type of data managed by the field. |
Fields
onValueChanged
Callback used when the value of the field changes.
Declaration
public Action<DebugUI.Field<T>, T> onValueChanged
Field Value
Type | Description |
---|---|
Action<DebugUI.Field<T>, T> |
Properties
getter
Getter for this field.
Declaration
public Func<T> getter { get; set; }
Property Value
Type | Description |
---|---|
Func<T> |
setter
Setter for this field.
Declaration
public Action<T> setter { get; set; }
Property Value
Type | Description |
---|---|
Action<T> |
Methods
GetValue()
Get the value of the field.
Declaration
public T GetValue()
Returns
Type | Description |
---|---|
T | Value of the field. |
SetValue(object)
Set the value of the field.
Declaration
public void SetValue(object value)
Parameters
Type | Name | Description |
---|---|---|
object | value | Input value. |
SetValue(T)
Set the value of the field.
Declaration
public virtual void SetValue(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | Input value. |
ValidateValue(T)
Function used to validate the value when updating the field.
Declaration
public virtual T ValidateValue(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | Input value. |
Returns
Type | Description |
---|---|
T | Validated value. |