Sizes for mobile views in mobile Unity simulator.
Posted: 08 Aug 2024, 11:06
Hello Again!
Today I come here to ask about mobile development.
So i'm working with visual studio 2022 and Unity. I've developed the desktop LoginView for our software and now I'm developing the mobile version for this View. I've created a separated XAML file for mobile version since this one has some visual changes and I've come across this issue:
When I run the Xaml file for mobile on unity i set this xaml in the noesis view and I execute the Simulator for mobile. The problem is that when I change between the diferent devices tha unity offers (from Iphone 12 to Xaomi Redmi 4 for example) I'm having diferent margin from the simulator border to my content, I'm not sure if this is something that I might be doing wrong or if this something that happens when using this emulator.
I'd like to ask if are there any examples for mobile development in unity or if you recomend using another emulator to test, also if you have any recomendations about how to manage sizes for mobile, I'm used to work with xamarin and there I used to manage sizes differentlyso maybe I'm doing something wrong.
Thanks beforehand!
Today I come here to ask about mobile development.
So i'm working with visual studio 2022 and Unity. I've developed the desktop LoginView for our software and now I'm developing the mobile version for this View. I've created a separated XAML file for mobile version since this one has some visual changes and I've come across this issue:
When I run the Xaml file for mobile on unity i set this xaml in the noesis view and I execute the Simulator for mobile. The problem is that when I change between the diferent devices tha unity offers (from Iphone 12 to Xaomi Redmi 4 for example) I'm having diferent margin from the simulator border to my content, I'm not sure if this is something that I might be doing wrong or if this something that happens when using this emulator.
I'd like to ask if are there any examples for mobile development in unity or if you recomend using another emulator to test, also if you have any recomendations about how to manage sizes for mobile, I'm used to work with xamarin and there I used to manage sizes differentlyso maybe I'm doing something wrong.
Thanks beforehand!