Automated: create new component page |
add info |
||
Line 3: | Line 3: | ||
|Name=Nullable Source Driver`1 | |Name=Nullable Source Driver`1 | ||
}} | }} | ||
The '''NullableSourceDriver''' component allows for getting info from a <code>Source</code> 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 <code>Source</code>. | |||
== | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|Source|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:Nullable`1|Nullable`1]]<T>>}}|TypeAdv0=true| | |Source|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:Nullable`1|Nullable`1]]<T>>}}|TypeAdv0=true| The field to get nullable data from. | ||
|Value|{{RootFieldType|FieldDrive`1|T}}|TypeAdv1=true| | |Value|{{RootFieldType|FieldDrive`1|T}}|TypeAdv1=true| The field to drive with the value for <code>Source</code> if it has a value, or instead drive with <code>DefaultValue</code>. | ||
|HasValue|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv2=true| | |HasValue|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv2=true| The field to drive with whether <code>Source</code> has a value. | ||
|DefaultValue|'''T'''|TypeAdv3=true| | |DefaultValue|'''T'''|TypeAdv3=true| The default value if <code>Source</code> doesn't have a value. | ||
|WriteBack|Bool| | |WriteBack|Bool| Whether writes to the fields driven by this component will update the value of <code>Source</code>. | ||
|UpdateDefaultValue|Bool| | |UpdateDefaultValue|Bool| Whether the default value gets updated when using write back and <code>Source</code> has no value. | ||
}} | }} | ||
== | == Usage == | ||
Can be used to extract data from nullables or write to them using a component only solution. | |||
== Examples == | == Examples == | ||
{{stub}} | |||
== See Also == | == See Also == | ||
* [[Type:Nullable|Nullable Fields]] | |||
[[Category:Components:Transform:Drivers{{#translation:}}|Nullable Source Driver`1]] | [[Category:Components:Transform:Drivers{{#translation:}}|Nullable Source Driver`1]] | ||
[[Category:Components{{#translation:}}|Nullable Source Driver`1]] | [[Category:Components{{#translation:}}|Nullable Source Driver`1]] | ||
[[Category:Generic Components{{#translation:}}|Nullable Source Driver`1]] | [[Category:Generic Components{{#translation:}}|Nullable Source Driver`1]] | ||
Revision as of 18:01, 27 January 2025
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 .
|
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.