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>?, FiberEventBinding[]?): draws a hidden ParticleSystem simulation's baked geometry in its own visual content and in the blend layers over it, or the texture a camera renders of a hidden VisualEffect. 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.