m ProbablePrime moved page DataPreset (Component) to Component:DataPreset: Creating component Namespace |
Add links |
||
Line 23: | Line 23: | ||
The Set Active button applies all values and references to their respective target fields. | The Set Active button applies all values and references to their respective target fields. | ||
The only way to programmatically apply the preset is to use a ProtoFlux | The only way to programmatically apply the preset is to use a [[ProtoFlux_Tool|ProtoFlux Tool]], grab the <code>SetActive()</code> [[Delegate]], and press the "Proxy" button in your [[Context_menu|Context Menu]], then feed a [[Impulses|Call]] into the node. | ||
<!--T:4--> | <!--T:4--> | ||
== Examples ==<!--T:5--> | == Examples == | ||
<!--T:5--> | |||
== Related Components == | == Related Components == | ||
</translate> | </translate> |
Revision as of 19:28, 25 February 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
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. |
IsActive
|
Bool | Indicates that all the presets in Entries have been applied. Cannot be driven. |
Entries
|
SyncRelayList<IDataPresetEntry> | A list of data preset references and values. |
Usage
Each entry in the list of Entries is a DataPresetReference<T> or a DataPresetValue<T>. These may be added manually, or, if the DataPresetReferences and DataPresetValues are components in this slot or child slots, the Add All Children button will add them for you (replacing any existing list).
Each entry consists of the value or reference, plus a target field.
The Set Active button applies all values and references to their respective target fields.
The only way to programmatically apply the preset is to use a ProtoFlux Tool, grab the SetActive()
Delegate, and press the "Proxy" button in your Context Menu, then feed a Call into the node.