pub unsafe extern "C" fn ecs_set_scope(
world: *mut ecs_world_t,
scope: ecs_entity_t,
) -> ecs_entity_tExpand description
Set the current scope. This operation sets the scope of the current stage to the provided entity. As a result new entities will be created in this scope, and lookups will be relative to the provided scope.
It is considered good practice to restore the scope to the old value.
@param world The world. @param scope The entity to use as scope. @return The previous scope.