- Home /
Button not fitting to fanel
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!