Function in ldk_scene_manager.h

ldk_scene_manager_current

Get the currently active scene.

LDK_API const LDKScene * ldk_scene_manager_current(const LDKSceneManager *manager);

Parameters

const LDKSceneManager *manager
Asset manager that owns or resolves the asset.

Returns

Pointer to the requested object or data; NULL when unavailable.

Function in ldk_scene_manager.h

ldk_scene_manager_current_reset

Forgets which catalog scene owns the ECS without modifying ECS contents. Use this when another loader, such as the editor direct-file loader, takes ownership of the current ECS while gameplay is stopped.

LDK_API bool ldk_scene_manager_current_reset(LDKSceneManager *manager);

Parameters

LDKSceneManager *manager
Asset manager that owns or resolves the asset.

Returns

True if the operation succeeds; false otherwise.