Plush

EffectParameter#

PlushEngine · Type index

Namespace: PlushEngine.Effects (using PlushEngine.Effects;)

One parameter an effect model declares for its elements: emission, motion, collision and over-age values. Numbers are in the units their label names; booleans are 0/1 at runtime. Module groups parameters the way the Inspector stacks them per element (Emit, Motion, Collide, Over age). Over-age values are element parameters, not animation clips.

public sealed record EffectParameter(string Name, string Label, EffectParameterKind Kind, float Default, string Module)

Record properties#

PropertyTypeAccessConstructor default
Namestringget; init;required
Labelstringget; init;required
KindEffectParameterKindget; init;required
Defaultfloatget; init;required
Modulestringget; init;required

Members: Max · Min · Whole

Max#

public float Max { get; init; }

Initial value: float.PositiveInfinity

Min#

public float Min { get; init; }

Initial value: float.NegativeInfinity

Whole#

public bool Whole { get; init; }

EffectParameterKind

Source#