Bevy cursor kit
Summary
Allows you to load .CUR and .ANI cursor files in your Bevy app and use them in custom CursorIcon
s.
- .CUR files can be used for static cursor icons like a grabbing hand.
- .ANI files can be used for animated cursor icons like an hourglass.
Quick start
Add the asset plugin for asset loader support:
use *;
app.add_plugins;
Load a static cursor or an animated cursor:
let handle = asset_server.load;
When the asset is ready, use its image when creating a custom CursorIcon
component on your Window
s:
let Some = static_cursors.get else ;
commands
.entity
.insert;
Check out the examples for more details.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.