bevy_scroller
Bevy plugin to scroll things. It allow to write generators with custom logic for item generation You can also create parallaxes with it.
Features
- Change scroll direction
- Support dfferent scroll item sizes
- Render to texture
- Pre-build generators:
- Single - repeat single image
- Sequence - repeat sequence of iamge
- Random Sequence - scroller will consist of random iamge from sequence
- Custom generators - set up your own system to generate scroller items. With this, you can scroll not only images but anything
Usage
spawn a scroller-entity with:
- ScrollerSize component
- Scroller component
- If you want any of pre-build generators, attach ScrollerGenerator component
commands.spawn;
Examples
example | image | description |
---|---|---|
single | shows a basic usage | |
sequence | shows a usage of sequence generator | |
random_sequence | shows random sequence generator | |
multiple | example of muptiple scrollers | |
mirrors | ![]() |
example of how you can render scroller to texture and then use that texture to show this same scroller in other parts of applications |
parallax | ![]() |
showing how you can set up a parallax with this plugin |