PropertyRange not work with Dictionary

Issue #899 new
Roy Ng created an issue
  1. What happened?
    PropertyRange not work with Dictionary
  2. 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; }
    }
    

    } ```

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

  4. What version of Unity are you using?
    2021.3.16f1

  5. What version of Odin are you using? (See "Tools > Odin Inspector > About")
    3.1.9.0
  6. Do you have Editor Only mode enabled?
    No (Odin serializer Enabled)
  7. What operating system are you on?
    Windows 10

Comments (0)

  1. Log in to comment