bevyengine / bevyengine/bevy

Incorrect display of UiImage's texture when it has both transparent & solid parts

Open
#9,022 4 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

Bevy 0.10.1

## What you did

I encountered a problem when I set up UiImage to display a texture with both transparent and solid parts.
This is how it should look like
Space Kitty Game over

And this is how it looks in Bevy
Screenshot 2023-07-01 at 20 01 56

The problem disappears when I separate the sprite into two sprites: one is completely solid without transparent parts, and the other is with transparent parts only. I'm pushing one ImageBundle to the children of another and everything displays correctly

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.