Skip to content

Commit f34bac3

Browse files
committed
adds comment about drawing scenes based on bevy_ui Node size
1 parent 977a6e7 commit f34bac3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ This release supports Bevy version 0.16 and has an [MSRV][] of 1.87.
3232
- `VelloTextSection` now supports `ContentSize` to calculate the content size of the text for bevy_ui.
3333
- `VelloSvgHandle` now supports `VelloScreenSpace` to render SVGs in screen space independent of bevy_ui.
3434
- `VelloLottieHandle` now supports `VelloScreenSpace` to render Lotties in screen space independent of bevy_ui.
35+
- Adds comment to `VelloScene` regarding drawing based on `bevy::prelude::Node` size.
3536

3637
### Fixed
3738

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ pub struct VelloSceneBundle {
6363
}
6464

6565
/// A simple newtype component wrapper for [`vello::Scene`] for rendering.
66+
///
67+
/// If you render a [`VelloScene`] based on a [`bevy::prelude::Node`]'s size, you should also
68+
/// add [`SkipScaling`] to the entity to prevent drawing outside the UI Node.
6669
#[derive(Component, Default, Clone, Deref, DerefMut)]
6770
#[require(Transform, Visibility, VisibilityClass)]
6871
#[component(on_add = view::add_visibility_class::<VelloScene>)]

0 commit comments

Comments
 (0)