bevyengine / bevyengine/bevy

UiPlugin cannot be used without rendering

Open
#3,815 7 comments 0 reactions 0 assignees View on GitHub
A-UI C-Bug
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.6

## What you did

```
use bevy::prelude::*;
use bevy::ui::UiPlugin;

fn main() {
App::new()
.add_plugins(MinimalPlugins)
.add_plugin(UiPlugin)
.run();
}
```

## What actually happened

```
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', C:\Users\Alice\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ui-0.6.0\src\render\mod.rs:62:70
```
This panic is in https://github.com/bevyengine/bevy/blob/458cb7a9e93dab3127bb99ce7bf8cfc3af18851d/crates/bevy_ui/src/render/mod.rs#L61.

## Additional information

Related to #3155.

This is essential for headless integration testing of UI logic.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.