The effect namespace contains all effect-related functions and variables.
Return type |
Description |
bool
|
effect.isRunning()
Returns true if the parent effect instance is still running, false if it has stopped.
This can be used to detect when the effect is stopped, and kill infinite particles, or gracefully fade them out.
|
bool
|
effect.isRenderingEnabled() [v2.7.0]
Returns true if the parent effect instance has rendering enabled, false if it was explicitly hidden.
This can be used to detect when the parent effect instance has been explicitly hidden by the game engine. It is automatically bound to each renderer’s Enabled pin.
Note that this does not represent when an effect is culled by the view frustum or LOD system, it is a separate "show/hide" mechanism.
|
bool
|
effect.isTeleporting() [v2.7.0]
Returns true if the parent effect instance has been teleported this frame.
This can be used to shutdown distance-based trail emission or other things sensitive to very large distances travelled in a single frame.
|