logo

Module bevy::ecs::entity

[]
Expand description

Entity handling types.

In Bevy ECS, there is no monolithic data structure for an entity. Instead, the Entity struct is just a generational index (a combination of an ID and a generation). Then, the Entity maps to the specific Components. This way, entities can have meaningful data attached to it. This is a fundamental design choice that has been taken to enhance performance and usability.

Usage

Here are links to the methods used to perform common operations involving entities:

Structs

Lightweight unique ID of an entity.

A location of an entity in an archetype.

An Iterator returning a sequence of Entity values from Entities::reserve_entities.

Enums

Traits