EffectParameter#
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#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Name | string | get; init; | required |
Label | string | get; init; | required |
Kind | EffectParameterKind | get; init; | required |
Default | float | get; init; | required |
Module | string | get; init; | required |
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; }Related types#
Source#
- EffectModel.cs