Synchronized Parameter Warning - Code Fix
Options
Gareth
✭
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):
Hopefully helps someone, and gets rolled back into Photon!
Gareth
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
0