2023.1.116.1 SegmentSynchronizer
Overview
The SegmentSynchronizer component automatically transfers any geometric changes on a BoxAsset to a Conveyor and vice versa.
Where to find
TBD
Feature layout
The image below shows the complete feature layout of the SegmentSynchronizer inspector.
Fields | |
Asset | The BoxAsset that needs to be synchronized. |
Conveyor | The Conveyor that needs to be synchronized. |
Axis | The Axis on the BoxAsset that needs to be synchronized. |
Cue Name | The GameObject name of index cues are displayed. Clicking it will ping the object in the hierarchy. |
Anchor Point | The anchor point this cue will hook onto when scaling the asset. Anchor points are the start or end of a segment or conveyor. |
Distance | The distance the cue needs to remain from its anchor point. |
(Re)Index Cues | Search for all Action Cues on the Conveyor and create settings for them in the SegmentSynchronizer. |
The SegmentSynchronizer automatically detects the BoxAsset and Conveyor on its GameObject. If it is unable to find a BoxAsset, it is unable to initialize properly and it will display the inspector below. A Conveyor, if not found, is added automatically.
How to use
Add the SegmentSynchronizer component to a GameObject containing a BoxAsset.
If a Conveyor was already present, it is detected automatically. Otherwise, it is added to the same GameObject automatically.
Select the Axis which you would like to synchronize. The segments of the Conveyor are updated automatically.
Index all cues on the conveyor. Set their settings so that they are anchored to the right points on the conveyor during scaling.
Change the axis values on the BoxAsset, or the segment values on the Conveyor, and the other component and all index cues are automatically synchronized.
Prespective Documentation