mirror of
https://github.com/bevyengine/bevy
synced 2024-11-30 00:20:20 +00:00
416a33e613
# Objective One of the use-cases for the function `Entity::from_raw` is creating placeholder entity ids, which are meant to be overwritten later. If we use a constant for this instead of `from_raw`, it is more ergonomic and self-documenting. ## Solution Add a constant that returns an entity ID with an index of `u32::MAX` and a generation of zero. Users are instructed to overwrite this value before using it. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |