- Home /
Creating GUI
When I want to create a GUI using new UI, I have a problem. For example I want to make GUI for resolution 1366x768. And in unity's game and scene views I can't see, how it looks with that resolution. If I change the button's position and want to see, how it will look, I need every time to build the project. Is it the easier way?
On the screensot:
Scene view
Game view
Builded game
Answer by HarshadK · Dec 19, 2014 at 12:34 PM
I think you need to play around with the Anchor points to set them at the position you want with respect to the point of screen where you want them to appear.
Currently all of these elements from your UI seem to be anchored at the center of the Canvas (or whatever is their parent) itself. You can set their anchor points relative to different positions like your three buttons (Start Game, Options and Exit) can be anchored to the 'left-bottom' and your Development Process button can be anchored to 'right-bottom'. Similarly you can anchor your elements to different positions so they will be placed at a position relative to that anchor.
You can set anchor from Rect Transform component of the UI element.
This will also help you to make your UI work with different screen sizes also.
Your answer
Follow this Question
Related Questions
GUI co-ordinates bug? 1 Answer
Null exception when drawing a rectangle 1 Answer
JS changing gui box color 1 Answer
Rotating a Rect by the GUI.matrix? 0 Answers
New GUI - Text not rendering in front of geometry if using a Mask 1 Answer