I’m going to detect the player’s screensize using ViewportSize and give them a different UI based on that, but I was wondering which method is better to use.
My UI consists of three parts, for all three platforms (Computer, Tablet, Phone): the TopBar, BottomBar and Menus.
The Tablet and Phone have the same TopBar, but different BottomBar. While the Computer and Tablet have the same BottomBar but different TopBar.
Now my problem is I have 3 methods I was thinking of to give the player the UI and I’m pretty new to this stuff so I’m not too sure which would be most responsive:
Method 1: Create TopBarMobile, TopBarPC, BottomBarMobile, and BottomBarPC. Then I’ll delete the old bar and add the new one based on their resolution.
Method 2: Create separate ScreenGuis and leave them in ReplicatedStorage and remove the old one and add the new one
Method 3: Keep all the values in a ModuleScript and then change the values of one universal ScreenGui based on resolution
I was leaning towards method 3, but I didn’t know if there was a different between that and the other methods.
If you play the new Loomian Legacy game, try minimizing ur game and you’ll see the gui at the top change. For bloxburg, on the mobile you’ll see the gui at the bottom right change too and how the interaction works