Skip to content

Feature request: Unknown design resolution of the Page #3086

@Feralnex

Description

@Feralnex

Is your feature request related to a problem? Please describe.
If I'm not mistaken the UI Component and Page resolutions have to be the same for the proper custom UI scaling otherwise we have no idea for which resolution the UI elements were designed for and thus we have to remember to always align these resolutions to implement proper UI scaling.

Describe the solution you'd like
Extending UIPage class with DesignResolution property and injecting Design.Resolution from the asset parameters seems to work.

Describe alternatives you've considered
Either keeping the same UI Component and Page resolution or forwarding design resolution via property of the script allows proper UI elements custom scaling.

Additional context
The solution turned out to be rather simple and I have already made it work on my branch. Here's the commit.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions