OnChange callback is no longer invoked for non-zeroed properties..

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.

OnChange callback is no longer invoked for non-zeroed properties..

Jaynesh
2021-12-31 13:02:11

On build 367 (Dec 16) this change was made to the SDK. Just wanted to check what it actually meant as I think it's causing an issue but not sure what it could be. I currently have a networked property that is updated in OnSpawned() with a OnChange callback, however, after updating Fusion, the callback is no longer working after spawn. The callback does work if I call it a few frames later.

OnChange

  • callback is no longer invoked for non-zeroed properties on object spawn

Comments

ramonmelo
2022-01-17 12:50:14

Hi @Jaynesh ,

The overall process of using the default values from a Networked Property is being re-worked at the moment, so this behavior can change during the current development phase.

Please, follow the discussions on our Discord Server dedicated to Fusion for any news related to this.

By the time of this post, yes, the OnChange callbacks were not invoked anymore if they've not changed from the initial value set on the Networked Property.

--

Ramon Melo

Photon Fusion Team

Back to top