Method SliderNormalizeValue
SliderNormalizeValue(THandleValueType, THandleValueType, THandleValueType)
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 abstract float SliderNormalizeValue(THandleValueType currentValue, THandleValueType lowerValue, THandleValueType higherValue)
Parameters
Type | Name | Description |
---|---|---|
THandleValueType | currentValue | The value to normalize. |
THandleValueType | lowerValue | The lowest value in the range. |
THandleValueType | higherValue | The highest value in the range. |
Returns
Type | Description |
---|---|
float |