I've been researching this but it seems like most of the questions about centering are for web or mobile games in full screen mode. I'm creating a browser app.
My app has a logo, some buttons, and about a dozen text fields. I'd like to get everything centered in a browser window for both PC and mobile (portrait). What is the best approach?
I tried pinning everything to a sprite and then centering that sprite in the middle of the screen -- but that isn't working. (I'm setting the x coordinate of my framing sprite to: (ViewportLeft(0) + ViewPortRight(0))/2)
Any suggestions?