RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.UnityHelpers

TemporaryParticleSystem Class

A component that should make temporary Particle Systems destroy themselves when the detonate switch is set to true and when the Particle System stops emitting.

public class TemporaryParticleSystem

Inheritance UnityEngine.MonoBehaviour 🡒 TemporaryParticleSystem

Fields  
detonate A field switch to signal that the Game Object owning the particle system can be destroyed as soon as the Particle System stops emitting.
particleSystem The Particle System partnered with this component.
Methods  
Awake() Overrideable Awake method.
FixedUpdate() Overrideable FixedUpdate method.