You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+64-1Lines changed: 64 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,74 @@ in bengali, aalo means "light" (i.e. photons), not to be confused with haalka !
6
6
7
7
[aalo](https://github.com/databasedav/aalo) is a [haalka](https://github.com/databasedav/haalka) port (in progress) of [bevy-inspector-egui](https://github.com/jakobhellermann/bevy-inspector-egui).
8
8
9
+
## setup
10
+
11
+
12
+
```toml
13
+
[dependencies]
14
+
aalo = { version = "0.0", optional = true }
15
+
16
+
[features]
17
+
development = ["aalo"]
18
+
```
19
+
20
+
```rust
21
+
#[cfg(feature ="development")]
22
+
useaalo::prelude::*;
23
+
24
+
#[cfg(feature ="development")]
25
+
app.add_plugins(AaloPlugin::new().world());
26
+
```
27
+
28
+
***HIGHLY RECOMMENDED***, while not required, aalo is much snappier when compiled in release mode, you'll only need to do so once
29
+
30
+
```toml
31
+
[profile.dev.package.aalo]
32
+
opt-level = 3
33
+
```
34
+
9
35
## registering custom frontends
10
36
11
-
use `register_frontend`, passing in a fully qualified type path and a function that returns an `impl Bundle` e.g. `Node`
37
+
use `register_frontend`, passing in a fully qualified type path and a function that returns an `impl Bundle`, e.g. `Node`, whose `Entity` also has a `FieldListener``Component`; `FieldListener` is just a wrapper around a `SystemId<In<Box<dyn PartialReflect>>>`, which will be forwarded the corresponding field's value every frame it is visible in the inspector
0 commit comments