|MatchTag|String|The tag to search for on the slot's immediate parent. Compatible [[Component:ParentReference|ParentReference]] components must have the same <code>Tag</code>.
|MatchTag|String|The tag to search for on the slot's immediate parent. Compatible [[Component:ParentReference|ParentReference]] components must have the same <code>Tag</code>.
|Target|{{RootFieldType|RefDrive`1|T}}|TypeAdv1=true|The field to drive using the value of the linked parent.
|Target|{{RootFieldType|RefDrive`1|T}}|TypeAdv1=true|The field to drive using the value of the linked parent.
|WriteBack|Bool|If <code>True</code>, any writes to the driven field will be propagated back to the <code>Reference</code> provided by the ParentReference.
|WriteBack|Bool|If <code>True</code>, any writes to the driven field will be propagated back to the <code>Reference</code> provided by the ParentReference. See [[Drives#Write Backs|write backs]].
|DefaultReference|'''T'''|TypeAdv3=true|Default value to use if the component can not find a compatible ParentReference.
|DefaultReference|'''T'''|TypeAdv3=true|Default value to use if the component can not find a compatible ParentReference.
}}
}}
Revision as of 18:25, 17 February 2025
Component image
ParentReferenceLink<Slot> component as seen in the Scene Inspector
If True, any writes to the driven field will be propagated back to the Reference provided by the ParentReference. See write backs.
DefaultReference
T
Default value to use if the component can not find a compatible ParentReference.
Usage
Upon a change of parent, this component will search for ParentReference components on the slot's immediate parent that have a matching type and tag. If it can find such a component and link to it, it will drive the Target field based on the Reference of the ParentReference. If it can not find such a component, it will use the DefaultReference value.