Provides input for a float value range in the editor and various convencience functions to work with that range.
More...
Provides input for a float value range in the editor and various convencience functions to work with that range.
§ RangeFloat() [1/2]
UnityUtilities.RangeFloat.RangeFloat 
( 
 ) 

Create a RangeFloat with 00 as the range. Needed for the editor.
§ RangeFloat() [2/2]
UnityUtilities.RangeFloat.RangeFloat 
( 
float @ 
from, 


float 
to 

) 
 
Create a RangeFloat with a certain range.
 Parameters

from  Lower range bound. 
to  Upper range bound. 
§ InverseLerp()
float UnityUtilities.RangeFloat.InverseLerp 
( 
float 
value  ) 

Calculates the linear parameter t that produces the interpolant value within the range [from, to].
 Parameters

 Returns
§ Lerp()
float UnityUtilities.RangeFloat.Lerp 
( 
float 
t  ) 

Linearly interpolates between to and from by t.
 Parameters

t  How much to interpolate. Clamped between 0 and 1. 0 is [to] and 1 is [from]. 
 Returns
§ LerpUnclamped()
float UnityUtilities.RangeFloat.LerpUnclamped 
( 
float 
t  ) 

Linearly interpolates between to and from by t.
 Parameters

t  How much to interpolate. 0 is [to] and 1 is [from]. 
 Returns
§ From
float UnityUtilities.RangeFloat.From 

get 
§ RandomInclusive
float UnityUtilities.RangeFloat.RandomInclusive 

get 
Returns a random number between from [inclusive] and to [inclusive].
§ Range
float UnityUtilities.RangeFloat.Range 

get 
Returns how wide the range between from and to is.
§ To
float UnityUtilities.RangeFloat.To 

get 
The documentation for this class was generated from the following file: