EffectElement#
One element of an effect: its model, a value for each of the model's parameters (booleans 0/1; absent ones read the model's default) and its look, a material of the model's surface model (null: the model's default look).
public sealed record EffectElement(string Id, string Name, EffectModel Model)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Id | string | get; init; | required |
Name | string | get; init; | required |
Model | EffectModel | get; init; | required |
Members: EffectiveLook · Flag · LayerId · Look · Number · Values · With
EffectiveLook#
public Material EffectiveLook { get; }The look the renderer uses: Look when it is of the model's surface model, else the default.
Flag#
public bool Flag(string name);LayerId#
public string? LayerId { get; init; }The collision layer particles act as (by layer ID): they collide with what that layer collides with. Null: the default layer.
Look#
public Material? Look { get; init; }Number#
public float Number(string name);Values#
public ImmutableDictionary<string, float> Values { get; init; }Initial value: ImmutableDictionary<string, float>.Empty
With#
public EffectElement With(string name, float value);A copy with one value changed (elements are immutable values), e.g. for tools and checks.
Related types#
Source#
- EffectAsset.cs