← Back to Docs
  • index.html
  • Clayground
  • Clayground.World
  • ClayWorldBase
  • Clayground 2025.2
  • ClayWorldBase QML Type

    Common base functionality for 2D and 3D game worlds. More...

    Import Statement: import Clayground.World

    Detailed Description

    ClayWorldBase provides shared functionality for ClayWorld2d and ClayWorld3d including scene loading from SVG, component registration, and entity management signals.

    Properties

    SVG file path for level data (relative to resources).

    Map of component name to QML Component for scene loading.

    If true, entities are loaded asynchronously without blocking UI.

    Show debug visualization (axis helpers, etc.).

    Show physics debug rendering.

    Signals

    Emitted before scene loading begins.

    Emitted when scene loading is complete.

    Emitted before an entity is created.

    Emitted after an entity is created.

    Emitted for unregistered polylines in the scene.

    Emitted for unregistered polygons in the scene.

    Emitted for unregistered rectangles in the scene.

    Emitted for unregistered circles in the scene.

    Emitted when entering an SVG group.

    Emitted when an SVG group is fully loaded.