Struct GradientPair
Gradient pair container class
Namespace: UnityEditor.Experimental.EditorVR.Helpers
Syntax
[Serializable]
public struct GradientPair
Constructors
GradientPair(Color, Color)
Declaration
public GradientPair(Color a, Color b)
Parameters
Type | Name | Description |
---|---|---|
Color | a | |
Color | b |
Fields
a
First color in the gradient pair
Declaration
public Color a
Field Value
Type | Description |
---|---|
Color |
b
Second color in the gradient pair
Declaration
public Color b
Field Value
Type | Description |
---|---|
Color |
Methods
Lerp(GradientPair, GradientPair, Single)
Provide for lerping between two gradient pairs
Declaration
public static GradientPair Lerp(GradientPair x, GradientPair y, float t)
Parameters
Type | Name | Description |
---|---|---|
GradientPair | x | The first gradient pair |
GradientPair | y | The second gradient pair |
Single | t | Amount for which to lerp between the first and second gradient pair |
Returns
Type | Description |
---|---|
GradientPair | The lerped gradient pair result |