Passing default state values after Instantiate
Hopefully this is pretty simple to solve, but I've not been able to work it out.
Here's my problem... I call
myEntity = BoltNetwork.Instantiate(...) to spawn the entity, then use
myEntity.state.Scalar = scaleValue; directly afterwards, to set a default value that is applied to other (unsynced) attributes of the instantiated object during the Attached() call.
This doesn't work. Scalar is always 0. My question then is how do I set a default value for this state variable at instantiation?
Any help is much appreciated.