Crate bevy_simple_scroll_view

Source
Expand description

§Bevy Simple Scroll View

crates.io docs license Following released Bevy versions crates.io

Simple to use plugin implementing ScrollView into Bevy engine. Supports scroll using dragging and scrolling, should work on all platforms.

Gif with plugin in action

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 versioncrate version
0.150.3
0.140.2
0.130.1

Structs§

ScrollView
Root component of scroll, it should have clipped style.
ScrollViewPlugin
A Plugin providing the systems and components required to make a ScrollView work.
ScrollableContent
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.