bevy/crates/bevy_scene/src
David Sugar 8a8293b266 Renamed Entity::new to Entity::from_raw (#3465)
# Objective

- Rename `Entity::new(id: u32)` to `Entity::from_raw(id: u32)`.
- Add further documentation.
- fixes #3108

## Solution

- Renamed `Entity::new(id: u32)` to `Entity::from_raw(id: u32)`.
- Docs extended.

I derived the examples from the discussion of issue #3108 .

The [first case](https://github.com/bevyengine/bevy/issues/3108#issuecomment-966669781) mentioned in the linked issue is quite obvious but the [second one](https://github.com/bevyengine/bevy/issues/3108#issuecomment-967093902) probably needs further explanation.


Co-authored-by: r4gus <david@thesugar.de>
2021-12-29 20:49:00 +00:00
..
command.rs System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
dynamic_scene.rs Renamed Entity::new to Entity::from_raw (#3465) 2021-12-29 20:49:00 +00:00
lib.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
scene.rs Bevy ECS V2 (#1525) 2021-03-05 07:54:35 +00:00
scene_loader.rs Fix some nightly clippy lints (#2522) 2021-07-29 20:52:15 +00:00
scene_spawner.rs fix parenting of scenes (#2410) 2021-12-24 06:57:28 +00:00
serde.rs bevy::scene::Entity renamed to bevy::scene::DynamicEntity. (#3448) 2021-12-27 21:24:18 +00:00