bevyengine / bevyengine/bevy

TextureSlicer should avoid squishing 9slice corners

Open
#21,733 0 comments 0 reactions 0 assignees View on GitHub
A-Rendering A-UI C-Bug D-Straightforward S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

context: Using a free asset from unity (https://assetstore.unity.com/packages/2d/gui/icons/2d-casual-ui-hd-82080#content), it contains the following image which I can 9slice:

Image

if I load it in bevy, and set a smaller length, I get this behaviour:

Image

## What solution would you like?

Maybe an added "minimum scale" for its corners ?

## Workaround

Of course, an ideal asset would be more mininal if its objective is to 9scale it, like:

Image

Which results in a better behaviour (ideally aligning perfectly but here my assets are to blame.)

Image

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.