InstantiateSceneObject - Documentation? Is it ready?
Options
carmine
✭✭
I saw some posts about "InstantiateSceneObject" which seems like a great solution for AI in a game. I have a couple of questions.
- Is this feature ready? Or still getting the kinks out.
- Can ANYONE Instantiate a Scene Object or only the current Master?
- Do you still use OnSerialize? I guess instead of PhotonView.isMine you could just use isMaster...
Thanks!
-Carmine
- Is this feature ready? Or still getting the kinks out.
- Can ANYONE Instantiate a Scene Object or only the current Master?
- Do you still use OnSerialize? I guess instead of PhotonView.isMine you could just use isMaster...
Thanks!
-Carmine
0
Comments
-
1) We didn't get error reports about this specific feature and in our tests it worked.
Yes, it's safe to use.
2) Only the master client can Instantiate (and control) scene objects.
I added this to the doc for next version.
3) Yes. On the Master, isMine will be true for these. All others read what you send.0 -
Tobias wrote:1) We didn't get error reports about this specific feature and in our tests it worked.
Yes, it's safe to use.
2) Only the master client can Instantiate (and control) scene objects.
I added this to the doc for next version.
3) Yes. On the Master, isMine will be true for these. All others read what you send.
I read somewhere else that PhotonNetwork.Destroy didn't really destroy these objects that they stayed buffered and when new people came in, they still got them.
Is this still the case?
-Carmine0 -
By now, we clear the buffer for that object.
If it stays around, it is a bug.0 -
This should be in completely.
You downloaded it with reference doc and full source. It would be faster to look it up0