Component:ParentReference: Difference between revisions

From Resonite Wiki
unstub
Automated: update Categories
 
Line 24: Line 24:
* [[Component:ParentValue]], for [[value types]].
* [[Component:ParentValue]], for [[value types]].


[[Category:Components:Data:Parent{{#translation:}}]]
[[Category:Components:Data:Parent{{#translation:}}|Parent Reference`1]]
[[Category:Components{{#translation:}}]]
[[Category:Components{{#translation:}}|Parent Reference`1]]
[[Category:Generic Components{{#translation:}}]]
[[Category:Generic Components{{#translation:}}|Parent Reference`1]]

Latest revision as of 06:03, 17 March 2025

Component image 
ParentReference<T> component as seen in the Scene Inspector


The ParentReference<T> component provides a reference type for the parent value system.

Fields

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. Some components stop their functionality when this field is disabled, but some don't.
Tag String Tag of the parent value. Compatible ParentReferenceLink components on the slot's immediate children must have the same tag.
Reference T The value of the parent value associated with the Tag and type.

Usage

When this component is on a slot, all immediate children are part of its parent value system. Any immediate children of the slot with a ParentReferenceLink component that matches the type and Tag of this component will be linked to the Reference provided by this component.

This can be especially useful for Snapper/SnapTarget systems.

Examples

See Also