UiAntiAlias
On
Off
Description
Marker for controlling whether Ui is rendered with or without anti-aliasing in a camera. By default, Ui is always anti-aliased.
Note: This does not affect text anti-aliasing. For that, use the
font_smoothing
property of theTextFont
component.use bevy_core_pipeline::prelude::*; use bevy_ecs::prelude::*; use bevy_ui::prelude::*; fn spawn_camera(mut commands: Commands) { commands.spawn(( Camera2d, // This will cause all Ui in this camera to be rendered without // anti-aliasing UiAntiAlias::Off, )); }