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.
Inheritance
VariaRandomValue
Namespace: Varia
Assembly: cs.temp.dll.dll
Syntax
public class VariaRandomValue : VariaBehaviour
Fields
property
The name of the property on the target component.
Declaration
Field Value
target
Specifices the specific component to set the value on.
Declaration
Field Value
Type |
Description |
Component |
|
useWeights
If true, the random choice from values is weighted, otherwise they are chosen uniformly.
Declaration
Field Value
values
The list of values to randomly choose from
Declaration
public List<VariaWeightedValue> values
Field Value
Properties
Mirror
Declaration
public VariaMirror Mirror { get; }
Property Value
Methods
Apply(VariaContext)
Declaration
public override void Apply(VariaContext context)
Parameters
Overrides