Spawn different prefabs for local and remote players
Options
Edisoni
✭
in Photon Bolt
Hi! I have architecture like below and would like spawn different prefabs
Server( OnConnected -> Spawn Player Prefab )
* Client(Me) - Spawned Local Player prefab with camera, character controller
* Client(Another Player) - Spawned Remote Player prefab with model, nameplate
I found this forum thread:
https://forum.photonengine.com/discussion/12900/any-advice-for-a-good-prefab-workflow
so I bought sample pack, but doesn't found example with prefab pool.
Server( OnConnected -> Spawn Player Prefab )
* Client(Me) - Spawned Local Player prefab with camera, character controller
* Client(Another Player) - Spawned Remote Player prefab with model, nameplate
I found this forum thread:
https://forum.photonengine.com/discussion/12900/any-advice-for-a-good-prefab-workflow
so I bought sample pack, but doesn't found example with prefab pool.
0
Comments
-
Hi, take a look at this doc.
https://doc.photonengine.com/en-us/bolt/current/community-wiki/extra-bits/entity-pooling
You can insert logic checks such as "if loading prefab with id 15 and i am the client, then load this different prefab"0