PropertyRange and OnValueChanged combined don't send a callback when slider hits the end

Issue #725 new
Aayush Sabharwal created an issue

I have PropertyRange and OnValueChanged on a float variable, and it sets a UI slider. Sticking the slider to either end doesn’t send the final callback corresponding to the max/min value of the slider

A mockup of the code I have:

[OnValueChanged("@TestFn()"), PropertyRange(0f, 10f), ShowInInspector]
private float testfloat;

public void TestFn()
{
  Debug.Log(testfloat);
}

Dragging the slider to either end should work to reproduce this. The max and min values aren’t logged.

Unity 2019.3.6f1

Odin 3.0.1.0

Windows 10

Comments (0)

  1. Log in to comment