Class DebugUI.Field<T>
Generic field - will be serialized in the editor if it's not read-only
Inherited Members
Namespace: UnityEngine.Rendering
Syntax
public abstract class Field<T> : DebugUI.Widget, DebugUI.IValueField
Type Parameters
| Name | Description | 
|---|---|
| T | 
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(T)
Set the value of the field.
Declaration
public void SetValue(T value)
Parameters
| Type | Name | Description | 
|---|---|---|
| T | value | Input value.  | 
SetValue(Object)
Set the value of the field.
Declaration
public void SetValue(object value)
Parameters
| Type | Name | Description | 
|---|---|---|
| Object | value | Input value.  | 
Implements
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.  | 
Explicit Interface Implementations
DebugUI.IValueField.GetValue()
Get the value of the field.
Declaration
object DebugUI.IValueField.GetValue()
Returns
| Type | Description | 
|---|---|
| Object | Value of the field.  | 
Implements
DebugUI.IValueField.ValidateValue(Object)
Function used to validate the value when updating the field.
Declaration
object DebugUI.IValueField.ValidateValue(object value)
Parameters
| Type | Name | Description | 
|---|---|---|
| Object | value | Input value.  | 
Returns
| Type | Description | 
|---|---|
| Object | Validated value.  |