Skip to content

Commit cd28a9e

Browse files
authored
add names to entities in dummy_setup (#209)
1 parent 9474248 commit cd28a9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/bevy_editor/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ fn dummy_setup(
9999
commands.spawn((
100100
Mesh2d(meshes.add(Circle::new(50.0))),
101101
MeshMaterial2d(materials_2d.add(Color::WHITE)),
102+
Name::new("Circle"),
102103
));
103104

104105
commands.spawn((
105106
Mesh3d(meshes.add(Plane3d::new(Vec3::Y, Vec2::splat(1.5)))),
106107
MeshMaterial3d(materials_3d.add(Color::WHITE)),
108+
Name::new("Plane"),
107109
));
108110

109111
commands.spawn((
@@ -112,5 +114,6 @@ fn dummy_setup(
112114
..default()
113115
},
114116
Transform::default().looking_to(Vec3::NEG_ONE, Vec3::Y),
117+
Name::new("DirectionalLight"),
115118
));
116119
}

0 commit comments

Comments
 (0)