From fe678e1eebd39166605ddeb2704c09634ff23942 Mon Sep 17 00:00:00 2001 From: andristarr Date: Thu, 29 May 2025 20:44:50 +0200 Subject: [PATCH] Updating mesh_picking doc to include RenderAssetUsages (#19413) # Objective Fixes #19102 Updating mesh_picking doc stating that MAIN_WORLD RenderAssetUsages needs to be on the mesh to be picked. --- crates/bevy_picking/src/mesh_picking/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_picking/src/mesh_picking/mod.rs b/crates/bevy_picking/src/mesh_picking/mod.rs index fe08976eb8..8e6a16690c 100644 --- a/crates/bevy_picking/src/mesh_picking/mod.rs +++ b/crates/bevy_picking/src/mesh_picking/mod.rs @@ -1,7 +1,7 @@ //! A [mesh ray casting](ray_cast) backend for [`bevy_picking`](crate). //! -//! By default, all meshes are pickable. Picking can be disabled for individual entities -//! by adding [`Pickable::IGNORE`]. +//! By default, all meshes that have [`bevy_asset::RenderAssetUsages::MAIN_WORLD`] are pickable. +//! Picking can be disabled for individual entities by adding [`Pickable::IGNORE`]. //! //! To make mesh picking entirely opt-in, set [`MeshPickingSettings::require_markers`] //! to `true` and add [`MeshPickingCamera`] and [`Pickable`] components to the desired camera and