Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

How to know when a BoltEntity has received initial state data on spawn on client

$
0
0
In UNET I would use OnStartClient, that method is called when an object is spawned and has all of it's state data available. How can I do the same in Bolt? At the moment, in Attached I start a coroutine and wait until certain properties do not have their default values. Is there a better way I can handle this? It's really bizarre to me that Bolt seems to have no concept of knowing if you've gotten your initial state data yet or not.

I'm aware of tokens, but it won't work for my needs since my initial data can also change, it's both initialization and state data. Plus tokens go against some of the concepts of Bolt: not having to write serialization/deserialization code.

Viewing all articles
Browse latest Browse all 15755

Trending Articles