Jacky's Simple Audio Manager  3.0.0-preview
A decentralized audio playing system for Unity, designed for simplicity and built to scale!
JSAM.JSAMExtensions Class Reference

Static Public Member Functions

static T Clamp< T > (this T val, T min, T max)
 
static bool Contains (this LayerMask mask, int layer)
 Extension method to check if a layer is in a layer mask With help from these lads https://answers.unity.com/questions/50279/check-if-layer-is-in-layermask.html More...
 
static float InverseLerpUnclamped (float min, float max, float value)
 
static bool IsNullEmptyOrWhiteSpace (this string input)
 
static bool TryForComponent< T > (this Component obj, out T comp)
 
static string ConvertToAlphanumeric (this string input, bool allowPeriods=false)
 Helpful method by Stack Overflow user ata https://stackoverflow.com/questions/3210393/how-do-i-remove-all-non-alphanumeric-characters-from-a-string-except-dash More...
 
static Color Add (this Color thisColor, Color otherColor)
 
static Color Subtract (this Color thisColor, Color otherColor)
 

Member Function Documentation

◆ Add()

static Color JSAM.JSAMExtensions.Add ( this Color  thisColor,
Color  otherColor 
)
static

◆ Clamp< T >()

static T JSAM.JSAMExtensions.Clamp< T > ( this T  val,
min,
max 
)
static
Type Constraints
T :System.IComparable<T> 

◆ Contains()

static bool JSAM.JSAMExtensions.Contains ( this LayerMask  mask,
int  layer 
)
static

Extension method to check if a layer is in a layer mask With help from these lads https://answers.unity.com/questions/50279/check-if-layer-is-in-layermask.html

Parameters
mask
layer
Returns

◆ ConvertToAlphanumeric()

static string JSAM.JSAMExtensions.ConvertToAlphanumeric ( this string  input,
bool  allowPeriods = false 
)
static

◆ InverseLerpUnclamped()

static float JSAM.JSAMExtensions.InverseLerpUnclamped ( float  min,
float  max,
float  value 
)
static

◆ IsNullEmptyOrWhiteSpace()

static bool JSAM.JSAMExtensions.IsNullEmptyOrWhiteSpace ( this string  input)
static

◆ Subtract()

static Color JSAM.JSAMExtensions.Subtract ( this Color  thisColor,
Color  otherColor 
)
static

◆ TryForComponent< T >()

static bool JSAM.JSAMExtensions.TryForComponent< T > ( this Component  obj,
out T  comp 
)
static
Type Constraints
T :Component 

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