Skip to content
Discussion options

You must be logged in to vote

Proton SDK doesn't really have an elegant way to handle GUI sizing exactly (compared to say, Unity's GUI system), but it can be done:

1. UI Element scale:

There are two main methods, one is setup a fake screen size and draw everything to that:

SetupFakePrimaryScreenSize(1024,768); //internally, you act like the screen is this size for all positioning, but actually it's scaled up/down to match whatever the real screen is

But that causes issues with incorrect aspect ratios (you could modify the "fake" screensize to at least match the primary screen aspect ratio, that might come out ok.. it sort of depends how many different screen sizes you're targeting and how different they are)

Oh, you …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mies1988
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants