Class ParticlesElement
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
The element behind Particles(ParticleSystem?, string?, string?, string?, PlayTrigger, float, StyleOverrides?, Func<VisualElement, Action>?, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?): draws a hidden ParticleSystem simulation as textured quads in its own visual content. A dedicated subclass so a type change to or from any other element remounts instead of patching, and so the element is never recycled through the shared primitive pools while it owns a live simulation host.
public sealed class ParticlesElement : VisualElement
- Inheritance
-
objectCallbackEventHandlerFocusableVisualElementParticlesElement
Methods
- Play()
Starts the bound effect — the imperative half of Manual (a Mount element may also use it to replay a finished burst). A no-op while no effect is bound.
- Stop()
Stops the bound effect and clears its live particles. A no-op while no effect is bound.