Variables
Last updated
Last updated
Fusion module has built-in components to synchronize Local or Global Name Variabes and Lists.
They all require to exist in a scene with a Network Object in order to work.
These components, besides synchronizing their current state to remote players, will replicate the state to newly joined players.
To synchronize Local Name Variables simply attach a Local Name Variables Netwok component.
To synchronize Global Name Variables create a new game object, attach a Global Name Variables Netwok
then select the Global Name Variables you need
To synchronize Local List Variables simply attach a Local List Variables Netwok component and select Sync Mode to Sync Data
To synchronize Global List Variables create a new game object, attach a Global List Variables Netwok
then select the Global List Variables you need and select Sync Mode to Sync Data
List Network components has 4 different types of synchronization modes:
This mode will sync state of list data
This mode will populate the list with all players and update it as they join or leave.
This mode is meant to be used to register attachment props through the network, once props are registered you can freely use Attach or Remove Prop instructions and it wil automatically replicate the attachments.
You can read more about this here.
This mode is meant to be used to register models or skins through the network, once props are registered you can freely use Change Model instructions and it wil automatically replicate it.
You can read more about this here.