Hello! Are you setting a specific size to your VisualElement? Because if you don’t set a specific size and set flex grow to 1, it should take the whole screen, whatever the size is.
The scale mode on your PanelSettings and the reference DPI depend on what the final outcome should be for your target device, but I highly recommend checking how to layout stuff with FlexBox properly before you go around playing with values.
Hope that helps
Hi again, awesome that you know flexbox! Many times here on the forums that’s not the case so we tend to always suggest to look that up
I opened your project here and no matter what type of scale mode I use for the PanelSettings, it always seems to take the full Game View - could it be a refresh problem there? Is it fixed if you press the Play button? We’ve had some of those and are working on fixing them, but not sure what’s already live or not.
Nope, it is not fixed by pressing play. Something is corrupted somewhere, I’m not sure where as I’m really new to unity. I’ll try making a new project and copy paste everything to fix it.
However I suspect it has something to do with the fact that my target build was android as it’s the only thing that seems different with my test project
JuliaP_Unity Hey, so I fixed the issues by creating a new project and copy pasting the assets. I also found how to make a faulty project, this might interest you.
So to make a faulty project here is what I did:
add com.unity.ui to the package manager
install ui builder
uninstall unity UI and mesh pro
Then the game view isn’t the same as in the UI Builder.
I did uninstall those in my initial project because I thought those were not needed as the new ui system was the one used.
However reinstalling text mesh pro on my initial project didnt resolve the issue but I’ll keep going on the copy pasted project.
Thanks for reporting back! Yes the Unity UI package should remain installed at all times, at least for now
Not sure about Text Mesh Pro, but maybe recent changes created some situation there.
Good to know this could be an issue, we’ll verify internally and see if there’s something to be done about it (at least document it, of course).