Creates a new Mesh component.
Configuration for the sprite
OptionalactorBlending mode for rendering
Color tint applied to the mesh
Current frame to render
Whether the mesh is disabled and should not render
Whether to flip the mesh horizontally
Whether to flip the mesh vertically
Height of the mesh in pixels
OptionalmaterialMaterial describes a shader and its options applied to a texture (optional).
Opacity from 0 (transparent) to 1 (opaque)
OptionalrenderInternal rendering data
Amount of frames in the sprite sheet
Sorting layer name for rendering order
Center point for sorting calculations
Path to the texture image file
Width of the mesh in pixels
Staticcomponent
Mesh component for rendering 2D textures with a custom shader.
Handles the visual representation of an actor using a texture. The material field specifies a shader and its options for the mesh. Similar to Sprite component, it can render a single texture or a frame from a sprite sheet. When a material is not provided, the default shader is used.
Example