UnityEssentials
Small but useful tools and features for Unity
Static Public Member Functions | List of all members
UnityEngine.IntExtensions Class Reference

Extensions for int More...

Collaboration diagram for UnityEngine.IntExtensions:
Collaboration graph

Static Public Member Functions

static int GetLooped (this int intToBeLooped, int exclusiveMaximum, int inclusiveMinimum=0, int variancePerStep=1)
 Loops returning the integer between a minimum and maximum (it does not update the looped int value). More...
 

Detailed Description

Extensions for int

Definition at line 7 of file IntExtensions.cs.

Member Function Documentation

◆ GetLooped()

static int UnityEngine.IntExtensions.GetLooped ( this int  intToBeLooped,
int  exclusiveMaximum,
int  inclusiveMinimum = 0,
int  variancePerStep = 1 
)
static

Loops returning the integer between a minimum and maximum (it does not update the looped int value).

Parameters
exclusiveMaximumThe exclusive maximum value than can be obtained.
inclusiveMinimumThe minimum value that can be obtained.
variancePerStepThe value added to the int every time that the method is called.
Returns
Returns a the result of adding the 'variancePerStep' (default to 1) to the original integer. The value is always between the minimum (inclusive, default to 0) and the maximum (exclusive).

Definition at line 16 of file IntExtensions.cs.


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