Skip to main content

get_component_unchecked

Function get_component_unchecked 

Source
pub unsafe fn get_component_unchecked<'w>(
    unsafe_world_cell: UnsafeWorldCell<'w>,
    entity: &'w ArchetypeEntity,
    table_id: TableId,
    storage: StorageType,
    component_id: ComponentId,
) -> Ptr<'w>
Expand description

Extracts a component as Ptr and its ticks from a table or sparse set, depending on its storage type.

ยงSafety

The component must be present in this archetype, have the specified storage type and we must have read access to it.