Function ecs_atfini

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_atfini(ecs_world_t *world, ecs_fini_action_t action, void *ctx)

Description

Register action to be executed when world is destroyed. Fini actions are typically used when a module needs to clean up before a world shuts down.

Parameters

world - The world.

action - The function to execute.

ctx - Userdata to pass to the function

Source

Line 925 in include/flecs.h.