Skip to content

Commit 81c6d50

Browse files
committed
Updated example scene file
1 parent a4217e6 commit 81c6d50

File tree

1 file changed

+12
-36
lines changed

1 file changed

+12
-36
lines changed

assets/scenes/load_scene_example.scn.ron

+12-36
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,23 @@
44
components: [
55
{
66
"type": "bevy_transform::components::transform::Transform",
7-
"struct": {
8-
"translation": {
9-
"type": "glam::vec3::Vec3",
10-
"value": (0.0, 0.0, 0.0),
11-
},
12-
"rotation": {
13-
"type": "glam::quat::Quat",
14-
"value": (0.0, 0.0, 0.0, 1.0),
15-
},
16-
"scale": {
17-
"type": "glam::vec3::Vec3",
18-
"value": (1.0, 1.0, 1.0),
19-
},
7+
"value": {
8+
"translation": (0.0, 0.0, 0.0),
9+
"rotation": (0.0, 0.0, 0.0, 1.0),
10+
"scale": (1.0, 1.0, 1.0),
2011
},
2112
},
2213
{
2314
"type": "scene::ComponentB",
24-
"struct": {
25-
"value": {
26-
"type": "alloc::string::String",
27-
"value": "hello",
28-
},
15+
"value": {
16+
"value": "hello",
2917
},
3018
},
3119
{
3220
"type": "scene::ComponentA",
33-
"struct": {
34-
"x": {
35-
"type": "f32",
36-
"value": 1.0,
37-
},
38-
"y": {
39-
"type": "f32",
40-
"value": 2.0,
41-
},
21+
"value": {
22+
"x": 1.0,
23+
"y": 2.0,
4224
},
4325
},
4426
],
@@ -48,15 +30,9 @@
4830
components: [
4931
{
5032
"type": "scene::ComponentA",
51-
"struct": {
52-
"x": {
53-
"type": "f32",
54-
"value": 3.0,
55-
},
56-
"y": {
57-
"type": "f32",
58-
"value": 4.0,
59-
},
33+
"value": {
34+
"x": 3.0,
35+
"y": 4.0,
6036
},
6137
},
6238
],

0 commit comments

Comments
 (0)