We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44fd5d2 commit 18a6a9eCopy full SHA for 18a6a9e
crates/bevy_render/src/view/visibility/render_groups.rs
@@ -251,6 +251,10 @@ entity.insert(groups);
251
let mut groups = RenderGroups::from(0);
252
groups.add(RenderLayer(1);
253
entity.insert(groups);
254
+
255
+// Option 3: manual
256
+let groups = RenderGroups::from(RenderLayers::from_layers(&[0, 1]));
257
+entity.insert(groups);
258
```
259
///
260
/// Similarly, if an entity without [`RenderGroups`] inherits from an entity with [`PropagateRenderGroups`] that
@@ -273,7 +277,7 @@ impl RenderGroups {
273
277
}
274
278
275
279
276
- /// Makes a new `RenderGroups` with just a camera.
280
+ /// Makes a new `RenderGroups` with just a camera and no [`RenderLayers`].
281
pub fn new_with_camera(camera: Entity) -> Self {
282
Self {
283
layers: RenderLayers::empty(),
0 commit comments