I want to Automatically resize/snap buttons to my panel but it isnt working
Hi Guys.
Im trying to follow a game tutorial and then build up from it later, but im stuck already at a very early stage.
I Added a panel to my game, to act as a level game screen, where players click on a button. I created a panel, and then added a ui button onto it, but i want it to automatically resize to the whole screen, which it isnt doing. This is so when i have like 20 levels i dont have to manually resize each one and it can do it itself. I tried adding a horizontal layout group and it isnt working, and a content size filter isnt working either.
https://www.youtube.com/watch?v=BiaNsIKJEj0&list=PLLH3mUGkfFCWCsGUfwLMnDWdkpQuqW3xa∈dex=1&t=35s -- Im using this tutorial. If you watch from about 10 minutes you will see what I mean.
If someone could help me and give me a list of what to do to fix this it would be super helpful! Thanks guys!
The image below is from the tutorial, and what i want it to look like :)
Your answer
Follow this Question
Related Questions
My project's UI keeps resizing itself and I have no idea why. 0 Answers
Button in one panel affects another? 1 Answer
Slide-Out Panel Animates on Button - How to Animate on Swipe Motion on Mobile? 1 Answer
Button becomes unclickable if it is in the panel 0 Answers
UI Button positioned outside Panel parent not registering click event (Unity 5.3.4) 1 Answer