Built-in Components
The engine ships a set of built-in components for common game features. They are attached to entities the same way as custom components, through the entity manager or archetypes. See Adding Entities to the Scene.
The components are grouped into three categories.
General purpose
| Component | Description |
|---|---|
Transform | Defines an entity’s position, scale, and rotation in the game world. |
Animator | Manages sprite animations through a map of named animations. |
AudioPlayer | Plays, pauses, and stops audio sources. |
Button | An interactive button that can be clicked or pressed. |
TiledWrapper | Wraps a Tiled map editor tilemap for use with tilemap components. |
Physics
See Physics for how these components work together.
| Component | Description |
|---|---|
RigidBody | Enables physics movement under velocity, acceleration, and gravity. |
BoxCollider | Rectangular collision shape. |
BallCollider | Circular collision shape. |
PolygonCollider | Convex polygon collision shape. |
EdgeCollider | Collision shape made of connected line segments. |
TilemapCollider | Collision shapes generated from a tilemap’s edges. |
Rendering
See Rendering for how cameras, layers, and render components work together.
| Component | Description |
|---|---|
Camera | Controls which layers are rendered to the screen. |
SpriteRenderer | Renders images (sprites). |
TextRenderer | Renders text. |
TilemapRenderer | Renders tile-based maps from a tileset image. |
MaskRenderer | Renders filled shapes (rectangle, circle, polygon). |
GeometricRenderer | Renders hollow (stroke-only) shapes and lines. |
LightRenderer | Renders a circular light source. Requires a DarknessRenderer in the scene. |
DarknessRenderer | Renders a darkness mask, affected by light renderers. |
VideoRenderer | Renders video content. |