OnValueChanged int bug to change a SkinnedMeshRenderer in the Editor

Issue #780 invalid
Julien Segers created an issue
  1. What happened?

Changing a SkinnedMeshRenderer with a PropertyRange (int) causes issues (not the good SkinnedMeshRenderer being chosen). It does work during Play though but not in the Editor.

2. How can we reproduce it?

https://pastebin.com/1nJ3AyLC

3. Screenshots

First image is the correct armor on “Clothes” = 2 (Fair Aqua Male Knight 03).

The armor doesn’t change if I set “Clothes” to 1 (it should change to a lighter armor, Fair Aqua Male Knight 02 in my list).

If I set “Clothes” back = to 2, it instead changes my armor to Fair Aqua Male Knight 02 (as if it was Clothes = 1).

Note: If I press the Cmd key on my keyboard, or click on my player in the hierarchy, the armor correctly updates.

4. Unity

2019.4.2f1

5. Odin

3.0.4.0

6. Editor Only

No.

7. Operating system

Mac OS Catalina 10.15.7

Comments (1)

  1. Tor Esa Vestergaard

    This issue does not appear to be in Odin, but in the incorrect use of Unity's API at editor time. If you can point to a bug caused by Odin itself here, please feel free to reopen the issue.

  2. Log in to comment