pub unsafe extern "C" fn ecs_get_mut_id(
world: *mut ecs_world_t,
entity: ecs_entity_t,
id: ecs_id_t,
) -> *mut c_voidExpand description
Get a mutable pointer to a component. This operation returns a mutable pointer to a component. If the component did not yet exist, it will be added.
If get_mut is called when the world is in deferred/readonly mode, the function will:
- return a pointer to a temp storage if the component does not yet exist, or
- return a pointer to the existing component if it exists
@param world The world. @param entity The entity. @param id The entity id of the component to obtain. @return The component pointer.