TargetCamera
TargetCamera
- bevy_ecs::entity::Entity
Description
Indicates that this root [
Node
] entity should be rendered to a specific camera.UI then will be laid out respecting the camera's viewport and scale factor, and rendered to this camera's [
bevy_render::camera::RenderTarget
].Setting this component on a non-root node will have no effect. It will be overridden by the root node's component.
Optional if there is only one camera in the world. Required otherwise.