How to Use Photon to Create Multiplayer in Unity - Sync Scene Data

preview_player
Показать описание
In this video, I will show you how to Sync your scene data or objects in Your scene using the Photon plugin in Unity. In my Campfire game, I have a random tree generator script that instantiates trees randomly around the scene. Because the trees are randomly generated they then need to be synced across the network.

Features:
Data scripts, Character customization menu, 2D Characters, Photon View
RPC, JSON Utility, Multiplayer, Dynamic objects

Post:

SUBSCRIBE to Info Gamer for regular Video Game making videos:
Рекомендации по теме
Комментарии
Автор

good tutorial. Waiting your tutorial using Colyseus. Thank you so much

lcd
Автор

i love it, wondering what kind of win condition you will be doing, and would you be checking if your the last player alive through photon and then adding win condition just curious, looking forward to next videos=D

kylemordaunt
Автор

how to sync. a Item spawn, to every player see it.
So if one player see that item is there, the another see too.
Because i don't know how to do it.
I have the Item Spawn script, but when ever i start the game, i see the item (if the random number set "0"), the another player can't see is there (Because his random number set on "1").
The random number is in the Random Item Spawn script.
Please help!
Thank you!

mmazuk
Автор

There is a much simpler way of dealing with syncing the tree list, you could've just register it as a custom type, sending text is super expensive.

kantagara
Автор

The Tree generator and photon are two separate components and you should not be hard coupling like this. Hope you are aware. Cheers!

SaiPrashanthNS