X Tutup
Skip to content

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

@KiwifruitDev

Description

@KiwifruitDev

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.

Metadata

Metadata

Labels

buggraphicslegacyLegacy bugs, may or may not be fixed due to their entaglement with an older engine.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup