EffectAsset#
A resolved effect datablock: elements that each simulate and draw with one effect model, and how long it plays. A non-looping effect emits for Duration and finishes when its last particle dies.
public sealed record EffectAsset(string Id, string Name, float Duration, bool Looping, IReadOnlyList<EffectElement> Elements)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Id | string | get; init; | required |
Name | string | get; init; | required |
Duration | float | get; init; | required |
Looping | bool | get; init; | required |
Elements | IReadOnlyList<EffectElement> | get; init; | required |
Related types#
Source#
- EffectAsset.cs