I have a problem syncing the array,the host and the peer both have access to the array but is not in sync.
Have your array been assigned to be in sync as instructed in the tutorials and examples for the multiplayer plugin ?
Also, you can make your own sync, by using the "Send a message" action and transfer the content of the array from the host to the peer .asJSON
I wanted to send the array as .asJSON but do i need to load the array to have the data change or how should i do?
You can load array on message received.
So on message receive i make load on to the array as
name_array.asJson,i hope this will work,Thanks a lot.
Develop games in your browser. Powerful, performant & highly capable.
Well to be specific, it would be
+ Multiplayer: On peer message "arrayUpdate"
-> Array: Load from JSON string Multiplayer.Message