How can I use Photon with visual scripting tool Bolt
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on PUN.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
How can I use Photon with visual scripting tool Bolt
Hatz
2022-07-18 15:05:28
I am a new developer and I have this project that use Bolt asset (Bolt | Visual Scripting | Unity Asset Store) to visual scripting and I am trying to add a multiplayer feature.
The objects that the Transform changes with certain actions are not synchronized. I added photon view and photon transform view on the objects and the players join the same room.
How can I synchronize the game?
Comments
As long as you PN.Instantiate the game objects (or have them in the scene), you should be able to just use a PhotonView and PhotonTransformView (like you do in the screenshot).
If that doesn't sync the object's movement, figure out if it's sending the data and receiving. If both clients know the same game object with the same PhotonView.viewID. This must match...
Tobias 2022-07-18T15:19:43+00:00
As long as you PN.Instantiate the game objects (or have them in the scene), you should be able to just use a PhotonView and PhotonTransformView (like you do in the screenshot).
If that doesn't sync the object's movement, figure out if it's sending the data and receiving. If both clients know the same game object with the same PhotonView.viewID. This must match...
Oh great, thank you. How can I test if it`s sending data? I am really new at developing in Unity =)
You could add Debug.Log to the PhotonTransformView.OnPhotonSerializeView(). Let it log if the client is writing or reading the stream. This way, you know if that code is running.
Similarly you can log the viewIDs.
Back to top