(Redirected from Component:NullableSourceDriver`1)
Component image 
Nullable Source Driver`1 component as seen in the Scene Inspector

The NullableSourceDriver component allows for getting info from a Source
nullable and driving a set of split fields with content from the nullable. Changes to driven fields by this component can also be reverse written back to Source
.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
Source
|
direct RelayRef`1<IField`1<Nullable`1<T>>> | The field to get nullable data from. |
Value
|
field drive of T | The field to drive with the value for Source if it has a value, or instead drive with DefaultValue .
|
HasValue
|
field drive of Bool | The field to drive with whether Source has a value.
|
DefaultValue
|
T | The default value if Source doesn't have a value.
|
WriteBack
|
Bool | Whether writes to the fields driven by this component will update the value of Source . See write backs.
|
UpdateDefaultValue
|
Bool | Whether the default value gets updated when using write back and Source has no value.
|
Usage
Can be used to extract data from nullables or write to them using a component only solution.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.