Class PaletteGenerator
A MonoBehaviour that can be used to configure a color palette. It has various methods, each generating a different type of palette based on the configured settings.
[Version(1, 0, 0)]
[ExecuteInEditMode]
public class PaletteGenerator : GLMonoBehaviour
- Inheritance
-
PaletteGenerator
- Inherited Members
-
MonoBehaviour.runInEditModeComponent.GetComponent<T>()Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentsInParent<T>()Component.transformComponent.gameObjectComponent.tagObject.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
- palette
A palette that contains the last set of colors generated.
Methods
- Awake()
Regenerates the palette with the current settings.
- Generate()
Generates colors with the algorithm defined by the algorithm field, and the associated properties.
Each time this method is called, a different set of colors is created.