EntityScope

interface EntityScope

Receiver for the onCreate callback of entity-producing scene composables — Group and the primitives (Cube, Sphere, Plane, Cylinder, Mesh). Exposes the created entity together with the engine, so one-time setup (manager operations, pick registries) needs no extra plumbing — the same scope-receiver shape as GltfInstance's richer GltfInstanceScope.

Properties

Link copied to clipboard
abstract val engine: Engine

The Filament engine, for manager operations on entity.

Link copied to clipboard
abstract val entity: Entity

The entity this composable created.