Class VariaRandomValue
Sets any property of any component to a value chosen randomly from a list. Only properties of types subclassing UnityEngine.Object are supported currently.
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 Value")]
public class VariaRandomValue : VariaBehaviourFields
property
The name of the property on the target component.
Declaration
public string propertyField Value
| Type | Description | 
|---|---|
| string | 
target
Specifices the specific component to set the value on.
Declaration
public Component targetField Value
| Type | Description | 
|---|---|
| Component | 
useWeights
If true, the random choice from values is weighted, otherwise they are chosen uniformly.
Declaration
public bool useWeightsField Value
| Type | Description | 
|---|---|
| bool | 
values
The list of values to randomly choose from
Declaration
public List<VariaWeightedValue> valuesField Value
| Type | Description | 
|---|---|
| List<VariaWeightedValue> | 
Properties
Mirror
Declaration
public VariaMirror Mirror { get; }Property Value
| Type | Description | 
|---|---|
| VariaMirror | 
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 |