Class SampleGradientNode<TColor, TGradient>
A node whose input is a gradient, and whose output is colors selected from that gradient.
[Version(2, 1, 0)]
public abstract class SampleGradientNode<TColor, TGradient> : Node<TGradient, Color> where TGradient : Gradient<TColor>
Type Parameters
TColor
TGradient
- Inheritance
-
SampleGradientNode<TColor, TGradient>
- Derived
- Inherited Members
-
Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.ToString()Object.hideFlags
Fields
- colorCount
How many colors to sample from the gradient.
- selectionMode
How to select colors from the gradient.
Methods
- Execute(IEnumerable<TGradient>)
Calculates a list of output from a given list of input.
- Recompute()
Recomputes a nodes internal values that are independent of the inputs.