Synchronized Parameter Warning - Code Fix

Options
Hi all,

We're experimenting with Photon and encountered this log:
Parameter 'X' doesn't exist anymore. Removing it from the list of synchronized parameters.

Unfortunately, the automatic removal of those properties doesn't mark the object as dirty, so it will happen every time you interact with the object.

The fix is to add into PhotonAnimatorViewEditor, line 177 (after the paramsToRemove check and before the foreach):
Undo.RecordObject(m_Target, "Auto-Remove params");

Hopefully helps someone, and gets rolled back into Photon!

Gareth

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Gareth,

    Thank you for choosing Photon and for your suggested fix!

    It's interesting and we are considering adding it.

    What PUN version and Unity versions did you test this with?