Skip to main content

Module scene

Module scene 

Source
Expand description

Scene module - hierarchy, transforms, and rendering components

Structs§

Children
GlobalTransform
GltfMeshRef
Component storing the source glTF mesh index for an entity.
MeshRenderer
Parent
PendingGltfSceneSpawns
Resource containing scene handles waiting to be spawned into ECS.
SpawnedGltfScenes
Resource storing spawned root entities keyed by scene-handle ID.
TransformComponent

Functions§

attach_child
detach_child
gltf_scene_spawn_system
Polls async glTF loads and spawns queued scenes once available.
mark_subtree_dirty
queue_gltf_scene_spawn
Queues an already requested glTF scene handle for spawn-on-resolve.
request_gltf_scene_spawn
Starts async glTF loading and queues the scene for automatic spawn when ready.
spawn_gltf_scene_hierarchy
Spawns glTF nodes into ECS while preserving the node hierarchy.
take_spawned_scene_roots
Returns and removes spawned roots for a resolved scene handle.
transform_propagate_system