| Parameter | Description |
|---|---|
| entity | The Entity object to check. |
bool True, if Entity.Version matches the version of the current entity at Entity.Index in the entities array.
Reports whether an Entity object is still valid.
An Entity object does not contain a reference to its entity. Instead, the Entity struct contains an index
and a generational version number. When an entity is destroyed, the EntityManager increments the version
of the entity within the internal array of entities. The index of a destroyed entity is recycled when a
new entity is created.
After an entity is destroyed, any existing Entity objects will still contain the
older version number. This function compares the version numbers of the specified Entity object and the
current version of the entity recorded in the entities array. If the versions are different, the Entity
object no longer refers to an existing entity and cannot be used.