Component:RelativePositioner

From Resonite Wiki
This page contains changes which are not marked for translation.
Component image 
Relative Positioner component as seen in the Scene Inspector

The RelativePositioner component puts the slot its attached to in a position based on the Bounding box and position of Reference. Optionally deleting the component on an update when the slot is positioned successfully.

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.
Reference Slot The slot to Relative position to.
ReferenceBoundsSpace direct RootSpace The space to calculate the Bounding box of Reference in.
ReferenceAnchor Float3 How far away from the center of the Reference's Bounding box based on size. (1,1,1) puts this slot at the positive corner in global space of Reference's Bounding box and (0,0,0) put it at Reference's center Bounding box point.
ReferenceOffset Float3 How much to add to the slot position after Bounding box positioning.
DestroyAfterDone Bool Whether to destroy this component after update and positioning was successfully done due to needed fields not being null.
_target field drive of Float3 The position field of this slot to drive.

Usage

Attach to a slot and provide a Reference in order for this component to do a valid position and optionally delete itself within that update.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

See Also