Class YauiCustomDraw
Draws meshes of its own in the draw order of the element on the same GameObject, like a ParticleSystem (Yaui.YauiParticle). Each mesh is a draw call of its own; the primitives around it split.
Assembly: Yaui.dll
View Source
Declaration
public abstract class YauiCustomDraw : MonoBehaviour
Derived:
Yaui.YauiParticle
Properties
Position
View Source
Declaration
public YauiCustomDrawPosition Position { get; set; }
Element
The element whose draw order the meshes join.
View Source
Declaration
protected YauiElement Element { get; }
Methods
OnEnable()
View Source
Declaration
protected virtual void OnEnable()
OnDisable()
View Source
Declaration
protected virtual void OnDisable()
OnValidate()
View Source
Declaration
protected virtual 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 abstract void OnCollectDraws(YauiDrawList draws)
Parameters
| Type | Name |
|---|---|
| Yaui.YauiDrawList | draws |