FlaxEngine / FlaxEngine/FlaxEngine

[Suggestion] Pixel Per Unit for Label/Text Control

Open
#2,457 4 comments 4 reactions 0 assignees View on GitHub
graphics suggestion ui
Dominant language
C++
Stars
7k
Forks
713
Avg merge
7d 11h
Merged PRs (30d)
19

Description

**Issue description:**
The idea is to stop blurry texts / labels, when using a world space canvas. World Space Texts can currently be achieved in two ways: World Space Canvas and Text Renderer.

The problem currently is that the text in world space canvases is too blurry, because it doesn't has enough pixel.
![World Space Canvas Small](https://github.com/FlaxEngine/FlaxEngine/assets/30194679/9922275c-b700-41b6-9792-017232932574)

The current workaround is to set the font size to something way larger by a factor and then scale the text control down by the same factor, to make the text look sharp
![World Space Canvas Overscan Small](https://github.com/FlaxEngine/FlaxEngine/assets/30194679/a73534a5-4f59-4513-8d86-e55900cafb1b)

The way this problem is solved in other engines is to have a property, that let's you set a custom Pixel per Unit count, where the text gets rendered with a set number of pixels. Per unit.

Text Renderer is no option for this scenario, since it doesn't align to a world space canvas. Also, it is missing an 'Face Camera' option, like the Sprite Renderer has.

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.