Show / Hide Table of Contents

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
Object
VariaBehaviour
VariaRandomValue
Inherited Members
VariaBehaviour.conditionList
VariaBehaviour.OnEnable()
VariaBehaviour.NoApply(VariaContext)
Namespace: Varia
Assembly: cs.temp.dll.dll
Syntax
public class VariaRandomValue : VariaBehaviour

Fields

property

The name of the property on the target component.

Declaration
public string property
Field Value
Type Description
String

target

Specifices the specific component to set the value on.

Declaration
public Component target
Field Value
Type Description
Component

useWeights

If true, the random choice from values is weighted, otherwise they are chosen uniformly.

Declaration
public bool useWeights
Field Value
Type Description
Boolean

values

The list of values to randomly choose from

Declaration
public List<VariaWeightedValue> values
Field Value
Type Description
List<VariaWeightedValue>

Properties

Mirror

Declaration
public VariaMirror Mirror { get; }
Property Value
Type Description
VariaMirror

Methods

Apply(VariaContext)

Declaration
public override void Apply(VariaContext context)
Parameters
Type Name Description
VariaContext context
Overrides
VariaBehaviour.Apply(VariaContext)
Back to top Generated by DocFX