- Home /
Question by
eDevGames · Dec 31, 2017 at 02:26 AM ·
guilayoutgui-problem
Align Image to Top Left Inside Rectangle Object
Hi! I have a back button in my 2D game. I am trying to make this back button so that it is as large as possible, provided that it stays in the space given to it. Once this is done, I want the button to also align to the top-left of the rectangle that it is in. How do I make this happen? As of now, the image will always be at the center of the rectangle.
screen-shot-2017-12-30-at-91957-pm.png
(106.1 kB)
screen-shot-2017-12-30-at-91943-pm.png
(116.2 kB)
Comment
Your answer
Follow this Question
Related Questions
Can I put extra buttons on the title area of a GUILayout window? 0 Answers
How do i get size in pixels of a GUI.Label for chat construction purpose ? 2 Answers
How to specify height and width in my GUILayout.Box? 2 Answers
GUILayout margin bug? 2 Answers
GUI Error: You are pushing more GUIClips than you are popping? 0 Answers