(2 intermediate revisions by one other user not shown)
Line 1:
Line 1:
<!--T:1-->
<!--T:1-->
{{stub}}
Data Preset reference is a component that takes any value type for PresetValue. When this is triggered by a [[Component:DataPreset|DataPreset]], this sets <code>TargetField</code> to <code>PresetValue</code>.
{{Infobox Component
{{Infobox Component
|Image=DataPresetValue`1Component.png
|Image=DataPresetValue`1Component.png
Line 9:
Line 9:
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|PresetValue|Float|The value for the preset. Float is used as an example. Since this is a generic component, it can be used with any value.
|PresetValue|'''T'''|TypeAdv0=true|The value for the preset. Float is used as an example. Since this is a generic component, it can be used with any value.
|TargetField|IField`1|TypeString1=IField<float>|A reference to the field of the same type as PresetValue.
|TargetField|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<T>}}|TypeAdv1=true|A reference to the field of the same type as PresetValue.
Data Preset reference is a component that takes any value type for PresetValue. When this is triggered by a DataPreset, this sets TargetField to PresetValue.
Component image
Data Preset Value`1 component as seen in the Scene Inspector