Little more than storage and extensions for Unity's Gradient. It provides Equals functionality allow comparisons and searching.
|
| GradientStorage (Gradient value) |
| Creates a new GradientStorage and internally stored Gradient object, and copies the values from the Gradient parameter (not the reference).
|
|
override bool | Equals (object obj) |
| Equals operator will return false if the object passed in is not a Gradient, or Gradient Storage object. Compares all the key values in the provided object with the values in this object, and returns true if they are all the same.
|
|
override int | GetHashCode () |
| return the hash code of the Gradient storedValue member
|
|
|
static int | CompareGradientColorKey (GradientColorKey a, GradientColorKey b) |
| Internal function used to see if two GradientColorKey are the same
|
|
static bool | CompareGradients (Gradient a, Gradient b) |
| Compares the values of two gradients. Check the arrays of GradientAlphaKeys, and GradientColorKeys to confirm all members are equal.
|
|
static Gradient | Copy (Gradient toCopy) |
| Creates a new Gradient Object, then duplicates the values from the provided gradient into it. Returns newly created and populated Gradient object.
|
|
|
Gradient | storedValue |
| Reference to the gradient that is stored by this object.
|
|