Incorrect Range attribute validation when min>max

Issue #584 new
Vanifatov Vlad created an issue

Range attribute is incorrectly checked if min value greater than max value. This supported by Unity, but not supported by Odin.

public class Demo : MonoBehaviour
{
    [UnityEngine.Range(min: 0, max: 1)] public float minMaxRange; // work

    [UnityEngine.Range(min: 1, max: 0)] public float maxMinRange; // not work
}

Unity 2019.1, Odin Inspector Source Code, Windows 10

Comments (1)

  1. Log in to comment