EffectReference#
An effect a script plays with Scene.PlayEffect: an effect chosen in the Inspector (by ID), or a library path such as "Effects/Explosion". Effects chosen in the Inspector or shelved in a library ship with the game.
public readonly record struct EffectReference(string Id)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Id | string | get; init; | required |
Members: Conversions · IsSet
Conversions#
public static implicit operator EffectReference(string idOrLibraryPath);IsSet#
public bool IsSet { get; }False when no effect was chosen.
Source#
- EffectReference.cs