| Crates.io | bevy_lookup_curve |
| lib.rs | bevy_lookup_curve |
| version | 0.9.0 |
| created_at | 2024-02-23 17:41:06.697965+00 |
| updated_at | 2025-05-05 19:48:32.93208+00 |
| description | Editable lookup curve for Bevy |
| homepage | https://crates.io/crates/bevy_lookup_curve |
| repository | https://github.com/villor/bevy_lookup_curve |
| max_upload_size | |
| id | 1150823 |
| size | 292,060 |
Editable lookup curve for Bevy that can be used for many things, for example:
If you have used AnimationCurve in Unity, this would be an attempt at something similar for Bevy.
LookupCurve type with modifiable knots and tangents. Three types of interpolation: Constant, Linear, and CubicLookupCurve implements bevy_math::Curve<f32> to fit into the ecosystem, giving access to resampling and other conveniences.egui-based editorhttps://github.com/villor/bevy_lookup_curve/assets/7102243/180aed95-ca9a-4e3b-97c4-2516055ea648
See examples for now
| Feature | Default | Description |
|---|---|---|
| serialize | Yes | Enable serde serialization/deserialization for the LookupCurve |
| ron | Yes | Enable loading/saving the curve as a ron file |
| bevy_reflect | Yes | Implement Reflect on most types in the crate |
| bevy_asset | Yes | Implement AssetLoader for LookupCurve |
| editor_egui | Yes | Enables the egui-based editor |
| editor_bevy | Yes | ECS component for convenient spawning of editor windows inside Bevy |
| inspector-egui | No | Integration with bevy-inspector-egui |
| bevy | bevy_lookup_curve |
|---|---|
| 0.16 | 0.9 |
| 0.15 | 0.6-0.8 |
| 0.14 | 0.3-0.5 |
| 0.13 | 0.1-0.2 |
This crate can be used without Bevy as well (except for bevy_math which is a core dependency).
Just set default-features = false. And enable serialize, ron, and/or editor_egui if needed.
See the egui_only example. It can also be used as a standalone curve editor.
Contributions are welcome. Feel free to make a PR!
Dual-licensed under either: