Class VariaRandomTint
Randomly sets the color of a MeshRenderer or SpriteRenderer component.
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
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.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: Varia
Assembly: Varia.dll
Syntax
[AddComponentMenu("Varia/Varia Random Tint")]
public class VariaRandomTint : VariaBehaviour
Fields
alphaMax
Declaration
public float alphaMax
Field Value
Type | Description |
---|---|
float |
alphaMin
Declaration
public float alphaMin
Field Value
Type | Description |
---|---|
float |
hueMax
Declaration
public float hueMax
Field Value
Type | Description |
---|---|
float |
hueMin
Declaration
public float hueMin
Field Value
Type | Description |
---|---|
float |
property
The name of the property on the target component.
Declaration
public string property
Field Value
Type | Description |
---|---|
string |
relative
Declaration
public bool relative
Field Value
Type | Description |
---|---|
bool |
relativeParent
Declaration
public int relativeParent
Field Value
Type | Description |
---|---|
int |
saturationMax
Declaration
public float saturationMax
Field Value
Type | Description |
---|---|
float |
saturationMin
Declaration
public float saturationMin
Field Value
Type | Description |
---|---|
float |
target
Specifices the specific component to set the value on.
Declaration
public Component target
Field Value
Type | Description |
---|---|
Component |
valueMax
Declaration
public float valueMax
Field Value
Type | Description |
---|---|
float |
valueMin
Declaration
public float valueMin
Field Value
Type | Description |
---|---|
float |
Methods
Apply(VariaContext)
Override this to control what happens when all the conditions are met
Declaration
public override void Apply(VariaContext context)
Parameters
Type | Name | Description |
---|---|---|
VariaContext | context |
Overrides
GetBaseColor()
Declaration
public Color? GetBaseColor()
Returns
Type | Description |
---|---|
Color? |
GetColor(bool)
Declaration
public Color? GetColor(bool force = false)
Parameters
Type | Name | Description |
---|---|---|
bool | force |
Returns
Type | Description |
---|---|
Color? |
GetRelativeTarget()
Declaration
public Object GetRelativeTarget()
Returns
Type | Description |
---|---|
Object |