Hey, i have been struggling lately in creating a functional lobby layout which handles different screen sizes correctly and fits my needs. Basically the issue im facing is I have a model on my main menu, of the selected character, and then theres multiple buttons for selecting character, game modes, shop etc. Those all can be stacked into the canvas but the model has been causing issues for me and sometimes when i build I can’t see the background, so my question is how can I properly set this up with the background as well, I tried putting the image behind the model, I also tried using Screen Space - Camera on the canvas but nothing seems to work perfectly. Thanks
Sounds like you’re still working with UGUI. Try UI Toolkit and its UI Builder. You can way more easily design a GUI that anchors, stretches and so forth because you can interactively resize the visible area while designing the GUI visually, and you can test it without even entering playmode.
Hey, thanks for your reply. Ah yes the UI toolkit completly forgot about that. I went through it last night and built a fairly simple system. I do have 2 questions in my mind though. One is for different panels, will I just be creating multiple UI documents and enabling/disabling them for my needs. Secondly I’m confused how should I go about displaying my model
Before jumping into UI Toolkit, check if all your needs are covered. AFAIK the runtime version still does not support the complete feature set.
Regarding UGUI: I am not 100% certain what you would like to achieve, but it sounds more like you want a world space canvas build around your 3D model.
If not, you may want to render your 3D model into a render texture and display that in the UI using a RawImage
. To configure your UI for different screen sizes, my extension Better UI might be useful for you (write me a PM if you want to try it for free).