Data Preset reference is a component that takes any reference type for PresetReference. When this is triggered by a [[Component:DataPreset|DataPreset]], this sets <code>TargetReference</code> to <code>PresetReference</code>.
{{Infobox Component
{{Infobox Component
|Image=DataPresetReference`1Component.png
|Image=DataPresetReference`1Component.png
Line 9:
Line 9:
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|PresetReference|'''T'''|TypeAdv0=true|The field reference for the preset. Since this is a generic component, it can be used with any type of reference.
|PresetReference|'''T'''|TypeAdv0=true|The field reference for the preset. Since this is a generic component, it can be used with any type of reference.
|TargetReference|{{RootFieldType|RelayRef`1|[[Type:SyncRef`1|SyncRef`1]]<T>}}|TypeAdv1=true|A reference to the reference field of the same type as PresetReference.
|TargetReference|{{RootFieldType|RelayRef`1|[[Type:SyncRef`1|SyncRef`1]]<T>}}|TypeAdv1=true|A reference to the reference field of the same type as PresetReference.
}}
}}
Line 15:
Line 15:
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
See [[DataPreset (Component)|DataPreset]] for usage.
See [[Component:DataPreset|DataPreset]] for usage.
Data Preset reference is a component that takes any reference type for PresetReference. When this is triggered by a DataPreset, this sets TargetReference to PresetReference.
Component image
Data Preset Reference`1 component as seen in the Scene Inspector