|MatchTag|String|The tag to search for on the slot's immediate parent. Compatible [[Component:ParentValue|ParentValue]] components must have the same <code>Tag</code>.
|MatchTag|String|The tag to search for on the slot's immediate parent. Compatible [[Component:ParentValue|ParentValue]] 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|FieldDrive`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>Value</code> provided by the ParentValue. See [[Drives#Write Backs|write backs]].
|WriteBack|Bool|If <code>True</code>, any writes to the driven field will be propagated back to the <code>Value</code> provided by the ParentValue. See [[Drives#Write Backs|write backs]].
|DefaultValue|'''T'''|TypeAdv3=true|Default value to use if the component can not find a compatible ParentValue.
|DefaultValue|'''T'''|TypeAdv3=true|Default value to use if the component can not find a compatible ParentValue.
Latest revision as of 06:03, 17 March 2025
Component image
ParentValueLink<float> component as seen in the Scene Inspector
If True, any writes to the driven field will be propagated back to the Value provided by the ParentValue. See write backs.
DefaultValue
T
Default value to use if the component can not find a compatible ParentValue.
Usage
Upon a change of parent, this component will search for ParentValue 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 Value of the ParentValue. If it can not find such a component, it will use the DefaultValue value.