Change the "Observe option" for PhotonView via script

Hello everyone,

is it possible to change the "Observe option" for a PhotonView via script? If so, how?
Adding an observed Component via script does not change the "Observe option" to "Unreliable on Change" as in Unity Editor.
Unfortunately I find nothing about it in the documentation or the forum.

Thank you.

Best Answer

  • KlitschKO
    KlitschKO
    Answer ✓
    I figured it out:
    photonView.Synchronization = ViewSynchronization.UnreliableOnChange;

Answers

  • KlitschKO
    KlitschKO
    Answer ✓
    I figured it out:
    photonView.Synchronization = ViewSynchronization.UnreliableOnChange;