UnityUtilities
UnityUtilities.RangeInt Class Reference

Provides input for a value range in the editor and various convencience functions to work with that range. More...

Public Member Functions

 RangeInt ()
 Create a RangeFloat with 0-0 as the range. Needed for the editor. More...
 
 RangeInt (int from, int to)
 Create a RangeFloat with a certain range. More...
 

Properties

int From [get]
 The range start. More...
 
int To [get]
 The range end. More...
 
int Range [get]
 Returns how wide the range between from and to is. More...
 
int RandomInclusive [get]
 Returns a random number between from [inclusive] and to [inclusive]. More...
 
int RandomExclusive [get]
 Returns a random number between from [inclusive] and to [exclusive]. More...
 

Detailed Description

Provides input for a value range in the editor and various convencience functions to work with that range.

Constructor & Destructor Documentation

§ 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
fromLower range bound.
toUpper range bound.

Property Documentation

§ From

int UnityUtilities.RangeInt.From
get

The range start.

§ 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 range end.


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