Expand description
§Bevy Simple Scroll View
Simple to use plugin implementing ScrollView into Bevy engine. Supports scroll using dragging and scrolling, should work on all platforms.
More details available in simple.rs example.
§Installation
cargo add bevy_simple_scroll_view
§Contributing
Please feel free to open a PR, but keep in mind this project’s goals. This is meant to be a simple scroll view widget.
The code should be simple enough for users to quickly understand and modify for their own purposes.
Please keep PRs small and scoped to a single feature or fix.
§Planned features
- horizontal scroll, should be pretty simple.
- MORE DOCS
- optional if there would be simple enough implementation I would consider adding scrollbars.
§Bevy compatibility table
Bevy version | crate version |
---|---|
0.15 | 0.3 |
0.14 | 0.2 |
0.13 | 0.1 |
Structs§
- Scroll
View - Root component of scroll, it should have clipped style.
- Scroll
View Plugin - A
Plugin
providing the systems and components required to make a ScrollView work. - Scrollable
Content - Component containing offset value of the scroll container to the parent.
It is possible to update the field
pos_y
manually to move scrollview to desired location.
Functions§
- create_
scroll_ view - Applies the default scroll view style to newly added
ScrollView
components. - scroll_
content_ node - Creates a default scroll content node.
- scroll_
view_ node - Creates a default scroll view node.