Function ecs_get_trigger_ctx

Synopsis

#include <include/flecs.h>

FLECS_API void * ecs_get_trigger_ctx(const ecs_world_t *world, ecs_entity_t trigger)

Description

Get trigger context. This operation returns the context pointer set for the trigger. If the provided entity is not a trigger, the function will return NULL.

Parameters

world - The world.

trigger - The trigger from which to obtain the context.

Returns
The context.

Source

Line 2809 in include/flecs.h.