Network state position toggle
Last updated
Last updated
You can use a network state to synchronize an object's movement between two positions. For example, you could synchronize a helicopter as hovering or landed, or a projector screen as raised or lowered.
To synchronize an object's movement between two positions, you can use the NetworkStateTrigger_GenericMovable
script. For this script, you configure the object that you want to move and two empty Game Objects that mark the positions to toggle between.
To initiate the transition between states, you can call the ToggleState
method of the NetworkStateTrigger_GenericMovable
script.
The following figure shows the configuration of the NetworkState-GenericMovableExample-Podium
prefab, which is available in the /Assets/ENGAGE_CreatorSDK/Prefabs/Tools
folder.