mirror of
https://github.com/bevyengine/bevy
synced 2024-11-30 00:20:20 +00:00
1e7e6c93e6
Since #9907 the generation starts at `1` instead of `0` so `Entity::to_bits` now returns `4294967296` (ie. `u32::MAX + 1`) as the lowest number instead of `0`. Without this change scene loading fails with this error message: `ERROR bevy_asset::server: Failed to load asset 'scenes/load_scene_example.scn.ron' with asset loader 'bevy_scene::scene_loader::SceneLoader': Could not parse RON: 8:6: Invalid generation bits`
46 lines
799 B
Text
46 lines
799 B
Text
(
|
|
resources: {
|
|
"scene::ResourceA": (
|
|
score: 2,
|
|
),
|
|
},
|
|
entities: {
|
|
4294967296: (
|
|
components: {
|
|
"bevy_transform::components::transform::Transform": (
|
|
translation: (
|
|
x: 0.0,
|
|
y: 0.0,
|
|
z: 0.0
|
|
),
|
|
rotation: (
|
|
x: 0.0,
|
|
y: 0.0,
|
|
z: 0.0,
|
|
w: 1.0,
|
|
),
|
|
scale: (
|
|
x: 1.0,
|
|
y: 1.0,
|
|
z: 1.0
|
|
),
|
|
),
|
|
"scene::ComponentB": (
|
|
value: "hello",
|
|
),
|
|
"scene::ComponentA": (
|
|
x: 1.0,
|
|
y: 2.0,
|
|
),
|
|
},
|
|
),
|
|
4294967297: (
|
|
components: {
|
|
"scene::ComponentA": (
|
|
x: 3.0,
|
|
y: 4.0,
|
|
),
|
|
},
|
|
),
|
|
}
|
|
)
|