#How can I set the background color of an entity?
4 messages · Page 1 of 1 (latest)
Did you check the examples and the bevy book? There's lots of info about this. Here's an example: https://github.com/bevyengine/bevy/blob/main/examples/2d/mesh2d.rs
It boils down to adding a colored mesh component to the entity.
yes, it makes my app crash
thread 'Compute Task Pool (1)' panicked at 'Resource requested by bevy_rapier2d::render::debug_render_scene does not exist: bevy_rapier2d::plugin::context::RapierContext', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.10.1/src/system/system_param.rs:460:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'A system has panicked so the executor cannot continue.: RecvError', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.10.1/src/schedule/executor/multi_threaded.rs:194:60
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_tasks-0.10.1/src/task_pool.rs:376:49
thread 'Compute Task Pool (1)' panicked at 'internal error: entered unreachable code: sending into a closed channel', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.10.1/src/schedule/executor/multi_threaded.rs:459:45