Verse Library verse

03 Fragment

Attaches an auto-playing particle system component when simulation begins.

verse-library/verse-scene-graph-entities-components/03-fragment.verse

# Inside a component, give this entity a particle effect at startup.
# BlowingParticles is a Niagara effect exposed in Assets.digest.verse.
OnBeginSimulation<override>():void =
    (super:)OnBeginSimulation()
    VFX:particle_system_component = BlowingParticles:
        Entity := Entity
        AutoPlay := true
    Entity.AddComponents(array{VFX})

Comments

    Sign in to vote, comment, or suggest an edit. Sign in