-
Hi: I want to build a micraft like game; and when i render a face of block like this: commands.spawn_bundle(PbrBundle {
mesh: quad_handle.clone(),
material: texture.forward.clone(),
transform: get_transform_by_face_type_form_vec3(FaceType::Forward, vec3, cube_size),
..default()
}); i can see it forever~ but i just to render it when i close to it. how can i do it?(how to drop pbrbundle?) Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can toggle the 'is_visible' bool in the 'Visibility' component that is part of the 'PbrBundle' |
Beta Was this translation helpful? Give feedback.
-
For help anyone else if make a demo https://github.com/zzhgithub/game-test/tree/feat01 |
Beta Was this translation helpful? Give feedback.
You can toggle the 'is_visible' bool in the 'Visibility' component that is part of the 'PbrBundle'