pub unsafe extern "C" fn ecs_component_init(
world: *mut ecs_world_t,
desc: *const ecs_component_desc_t,
) -> ecs_entity_tExpand description
Find or create a component. This operation creates a new component, or finds an existing one. The find or create behavior is the same as ecs_entity_init.
When an existing component is found, the size and alignment are verified with the provided values. If the values do not match, the operation will fail.
See the documentation of ecs_component_desc_t for more details.
@param world The world. @param desc Component init parameters. @return A handle to the new or existing component, or 0 if failed.