bevy/crates/bevy_hierarchy/src/components
JoJoJet 416a33e613 Add const Entity::PLACEHOLDER (#6761)
# 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.
2022-11-28 13:40:10 +00:00
..
children.rs Add methods to Query<&Children> and Query<&Parent> to iterate over descendants and ancestors (#6185) 2022-10-31 15:57:50 +00:00
mod.rs Hierarchy commandization (#4197) 2022-07-10 20:29:06 +00:00
parent.rs Add const Entity::PLACEHOLDER (#6761) 2022-11-28 13:40:10 +00:00