Provides input for a value range in the editor and various convencience functions to work with that range.
More...
Provides input for a value range in the editor and various convencience functions to work with that range.
§ RangeInt() [1/2]
UnityUtilities.RangeInt.RangeInt |
( |
| ) |
|
Create a RangeFloat with 0-0 as the range. Needed for the editor.
§ RangeInt() [2/2]
UnityUtilities.RangeInt.RangeInt |
( |
int |
from, |
|
|
int |
to |
|
) |
| |
Create a RangeFloat with a certain range.
- Parameters
-
from | Lower range bound. |
to | Upper range bound. |
§ From
int UnityUtilities.RangeInt.From |
|
get |
§ RandomExclusive
int UnityUtilities.RangeInt.RandomExclusive |
|
get |
Returns a random number between from [inclusive] and to [exclusive].
§ RandomInclusive
int UnityUtilities.RangeInt.RandomInclusive |
|
get |
Returns a random number between from [inclusive] and to [inclusive].
§ Range
int UnityUtilities.RangeInt.Range |
|
get |
Returns how wide the range between from and to is.
§ To
int UnityUtilities.RangeInt.To |
|
get |
The documentation for this class was generated from the following file: