0

Hi I am really new to Unity development.I have a canvas with following structure

enter image description here

Inspector for all the UI elements are as below

For canvas enter image description here

For Panel

enter image description here

For Inner Button enter image description here

I am checking this on my iPad pro 2020.Followings are the results.(The + button inside the panel). My question is the "+" button and panel's aspect ratio is different when changing from portrait to landscape. How can I fix this issue? Thanks in advance.

Portrait enter image description here

Landscape enter image description here

1 Answer 1

1

If you choose a canvas scaler type (width or height), should change dynamically with W/H ratio your device aspect ratio calculation as float value, also this value are related your device screen orientation. So you need to calculate seperately for portrait or landscape orientations. Differently you could use match mod with shrink and set value to minimum pixel ratio your sprites.

However, in some cases, you may need to create compatible image files in different resolution modes while designing for tablets.

These methods gives you a immutable screen visuals...

Also, if you haven't read it, please read this thread and the related instructions. Multi Resolution

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.