Skip to main content

MinMaxValue

A class in Root.Township, the global namespace.

A serializable float range (min and max) for inspector settings.

Constructors​

MemberWhat it is
MinMaxValue()Creates a MinMaxValue with default values.

Fields​

2 private and internal fields
MemberWhat it is
private float maxTop of the range (default 1).
private float minBottom of the range (default 0).

Properties​

MemberWhat it is
float RandomValue { get; }A random value between min and max.

Methods​

MemberWhat it is
float GetProgress(float progress)Lerps from min to max by the given progress.

Used in​

Members of other types that take, return or hold a MinMaxValue: