Odin does not update Dictionary keys of type "uint".

Issue #813 new
Devel FS created an issue
1. What happened?

When declaring a dictionary that has the key type as uint, when you try to update the key’s value, Odin does not react (does not update the key’s value, does not re-sort the fields, etc.)

On the other hand, when using keys of type int or string the key’s value update works as expected

Please see the attached video.

2. How can we reproduce it?

Use the example code from Odin’s website:

https://odininspector.com/tutorials/serialize-anything/serializing-dictionaries

and declare a dictionary with uint key type:

[Serializable] public class UintDict : UnitySerializedDictionary<uint, string> { }

Or use the source code provided as attachment and create a new Scriptable Object.

3. If screenshots would help explain or demonstrate your issue, please include these.

There is a video attached .

4. What version of Unity are you using?

Unity 2020.3.20f1

5. What version of Odin are you using? (See "Tools > Odin Inspector > About")

Odin 3.0.12.0

6. Do you have Editor Only mode enabled?

Yes

7. What operating system are you on?

Windows 10

Comments (5)

  1. Log in to comment