The way NEO would see the Matrix if he was a gamedev;
BTW This is what I want not what I got
- Non Intrusive, it doesn't affect your system scheduling and if you don't want them they are gone;
fn my_system(gizmos: Res<GizmosCommandBuffer>, ...) {
gizmos.draw(|context| {
// If gizmos are disabled this won't run
let points = generete_your_expensive_spline(too_many_points);
context.line_list(point);
})
}
- Immediate and Persistent Mode's
fn startup_system(mut commands: Commands) {
commands.spawn(PbrBundle { ... }) // The object
.with_children(|c| c.spawn(
GizmoBundle { // And his gizmo
gizmo: Gizmo { ... },
})
);
}
- Fast TM
Ideally it shouldn't drop FPS while active, unless it's a user fault.
- Gizmos for days
Have a lot of pre-made gizmos, enough to cover basic and some extra, to name a few: capsule, spline, arrow_handle, billboards;