Class YauiParticle
Draws the ParticleSystems on this GameObject and its descendants (up to other elements) in the draw order of the element, like ParticleEffectForUGUI does for uGUI. The particles are baked into meshes every frame; their renderers are disabled while this is enabled.
Assembly: Yaui.dll
View Source
Declaration
public sealed class YauiParticle : YauiCustomDraw
Inheritance: System.Object -> Yaui.YauiCustomDraw
Properties
Scale
View Source
Declaration
public float Scale { get; set; }
Methods
Refresh()
Finds the particle systems again, after they were added or removed below this GameObject.
View Source
Declaration
public void Refresh()
OnEnable()
View Source
Declaration
protected override void OnEnable()
OnDisable()
View Source
Declaration
protected override void OnDisable()
OnValidate()
View Source
Declaration
protected override void OnValidate()
OnCollectDraws(YauiDrawList)
Main thread, once a frame right before rendering, after the layout and the transforms: updates the meshes and records them. The layout of the element (Yaui.YauiElement.LayoutRect) is current.
View Source
Declaration
protected override void OnCollectDraws(YauiDrawList draws)
Parameters
| Type | Name |
|---|---|
| Yaui.YauiDrawList | draws |