Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprites are not properly being scaled down by canvas UIs #68

Open
KiwifruitDev opened this issue Jan 14, 2019 · 1 comment
Open

Sprites are not properly being scaled down by canvas UIs #68

KiwifruitDev opened this issue Jan 14, 2019 · 1 comment
Assignees
Labels
bug graphics legacy Legacy bugs, may or may not be fixed due to their entaglement with an older engine.

Comments

@KiwifruitDev
Copy link
Contributor

KiwifruitDev commented Jan 14, 2019

Describe the bug
The sprites included in start.unity's CanvasUI GameObject are not being scaled to the correct resolution when the framework is in a resolution of 342x192 (default resolution). Instead, they appear choppy and not using the full resolution.

To Reproduce
Steps to reproduce the behavior:

  1. Go to start.unity
  2. Expand CanvasUI
  3. Enable a UI
  4. Set resolution in-game to 342x192
  5. See results

Expected behavior
Sprites should appear clean and appear the same across multiple resolutions using 342x192 as a baseline for testing.

Solution
Change the Canvas Scaler component in CanvasUI to have 342x192 as its reference resolution, as well as 16 reference pixels per unit. This should also allow previous canvas UI designs to retain compatibility.

Screenshots
342x192:
image
1149x647:
image

Desktop (please complete the following information):

  • OS: Windows 10 Home
  • Browser: Opera
  • Version: beta

Additional context
The 342x192 resolution is a widescreen aspect ratio version of the NDS's display resolution. It is used in the master branch a lot when in the UIs or in-game. Its purpose is to have the resolution closely match the HeartGold/SoulSilver games while still fitting in a modern aspect ratio.

@herbertmilhomme
Copy link
Member

Never noticed i was tagged in this... but i think the issue here is that the resolution is because it's being reduced, and the sprite scaling settings probably need to be reconfigured from bilinear (or whatever setting it's currently at) to something more like a flat bitmap. Not sure if the issue still persist or if it's already been addressed... honestly havent been following until i just reviewed what was still pending in issue list.

@gen3vra gen3vra added the legacy Legacy bugs, may or may not be fixed due to their entaglement with an older engine. label Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug graphics legacy Legacy bugs, may or may not be fixed due to their entaglement with an older engine.
Development

No branches or pull requests

3 participants