The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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

Tobias
2022-07-18 15:19:43

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...

Hatz
2022-07-19 01:39:54

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 =)

Tobias
2022-07-19 08:22:44

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