PropertyRange not work with Dictionary
Issue #899
new
- What happened?
PropertyRange not work with Dictionary -
How can we reproduce it?
Use the code below as Test.cs and add this component to GameObject, then add some dictionary to reproduce
``` using System.Collections; using System.Collections.Generic; using UnityEngine; using Sirenix.OdinInspector;
public class Test : SerializedMonoBehaviour { public List<Child> work; public Dictionary<string, Child> notWork;
[System.Serializable] public class Child { [ShowInInspector] [PropertyRange(0,10)] public int Range { get; set; } }
} ```
-
If screenshots would help explain or demonstrate your issue, please include these.
-
What version of Unity are you using?
2021.3.16f1 - What version of Odin are you using? (See "Tools > Odin Inspector > About")
3.1.9.0 - Do you have Editor Only mode enabled?
No (Odin serializer Enabled) - What operating system are you on?
Windows 10