Class Particle
Entity that represent a animated decoration
Implements
Properties
AutoArtworkID
Artwork sprite ID if this particle is using the built-in logic for rendering
Declaration
public virtual int AutoArtworkID { get; }
Duration
How long of this particle exists in stage in frames
Declaration
public abstract int Duration { get; }
LocalFrame
Animation frame start from 0
Declaration
public int LocalFrame { get; }
Loop
True if this particle animation loops
Declaration
public abstract bool Loop { get; }
RenderingLayer
Which layer should this particle rendering into
Declaration
public virtual int RenderingLayer { get; }
RenderingZ
Z value the sort rendering cells
Declaration
public virtual int RenderingZ { get; }
Rotation
Angle of this particle
Declaration
public int Rotation { get; set; }
Scale
Size scale this particle should apply (0 means 0%, 1000 means 100%)
Declaration
public int Scale { get; set; }
Tint
Color tint for this particle
Declaration
public Color32 Tint { get; set; }
UserData
Custom data this particle holds
Declaration
public object UserData { get; set; }
Methods
BeforeUpdate()
[2/4] This function is called every frame when entity is in stage. Prioritize using this function to update physics logic.
Declaration
public override sealed void BeforeUpdate()
Overrides
LateUpdate()
[4/4] This function is called every frame when entity is in stage. Prioritize using this function to render the entity.
Declaration
public override void LateUpdate()
Overrides
OnActivated()
This function is called when entity enter the stage
Declaration
public override void OnActivated()