mirror of
https://github.com/bevyengine/bevy
synced 2024-12-02 01:19:12 +00:00
9bf80a8566
I noticed the following error when trying out the `scene` example ```bash Feb 13 22:11:13.997 WARN bevy_asset::asset_server: encountered an error while loading an asset: No registration found for glam::f32::vec3::Vec3 ``` This PR fixes the error and makes the scene file load correctly
64 lines
1.2 KiB
Text
64 lines
1.2 KiB
Text
[
|
|
(
|
|
entity: 0,
|
|
components: [
|
|
{
|
|
"type": "bevy_transform::components::transform::Transform",
|
|
"struct": {
|
|
"translation": {
|
|
"type": "glam::vec3::Vec3",
|
|
"value": (0.0, 0.0, 0.0),
|
|
},
|
|
"rotation": {
|
|
"type": "glam::quat::Quat",
|
|
"value": (0.0, 0.0, 0.0, 1.0),
|
|
},
|
|
"scale": {
|
|
"type": "glam::vec3::Vec3",
|
|
"value": (1.0, 1.0, 1.0),
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"type": "scene::ComponentB",
|
|
"struct": {
|
|
"value": {
|
|
"type": "alloc::string::String",
|
|
"value": "hello",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"type": "scene::ComponentA",
|
|
"struct": {
|
|
"x": {
|
|
"type": "f32",
|
|
"value": 1.0,
|
|
},
|
|
"y": {
|
|
"type": "f32",
|
|
"value": 2.0,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
),
|
|
(
|
|
entity: 1,
|
|
components: [
|
|
{
|
|
"type": "scene::ComponentA",
|
|
"struct": {
|
|
"x": {
|
|
"type": "f32",
|
|
"value": 3.0,
|
|
},
|
|
"y": {
|
|
"type": "f32",
|
|
"value": 4.0,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
),
|
|
]
|