How can I pass data with photon Fusion

The whole answer can be found below.

Please note: 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! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Fusion.

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 pass data with photon Fusion

Sor3a
2022-09-03 22:09:55

Hello guys I have array of int and when the host join he will generate it , I want when the players join the server can know that data I searched a lot still didn't find anything

Comments

HippoLord
2022-09-04 08:30:20

If I understood your question correctly, what you need is to add something like this:

[Networked, Capacity(4)]

NetworkArray syncedArray { get; }

Here is the link for Networked arrays:

https://doc-api.photonengine.com/en/fusion/current/struct_fusion_1_1_network_array.html

Back to top