Method SliderNormalizeValue
SliderNormalizeValue(int, int, int)
Method to implement which returns the normalized value of a given value in a specific range.
Usually you can use directly an InverseLerp(float, float, float) for floating point value types.
Declaration
protected override float SliderNormalizeValue(int currentValue, int lowerValue, int higherValue)
Parameters
Type | Name | Description |
---|---|---|
int | currentValue | The value to normalize. |
int | lowerValue | The lowest value in the range. |
int | higherValue | The highest value in the range. |
Returns
Type | Description |
---|---|
float |