BoltNetwork.Instantiate and IProtocolToken
Options
in Photon Bolt
Hey guys,
I'm currently trying to spawn a players character after he joins the server. I see BoltNetwork.Instantiate accepts an IProtocolToken parameter, but where am I able to read this token on the clients who receive the instantiate call?
The reason I need is that I'm setting up the players equipment & look depending on the character id, which I would add to the protocol token.
I'm currently trying to spawn a players character after he joins the server. I see BoltNetwork.Instantiate accepts an IProtocolToken parameter, but where am I able to read this token on the clients who receive the instantiate call?
The reason I need is that I'm setting up the players equipment & look depending on the character id, which I would add to the protocol token.
0
Comments
-
The token added during instantiation is read during the Attached callback.
It's accessed via the entity.attachToken. Pretty sure.
1 -
Awesome, thanks Yukichu.0