Hi
I have this prefab of a button that I instantiate as a child of a panel in my canvas. But unfortunately it instantiates it with the anchor points in the right place, but the properties values of the rect transform are really out of balance. ( now they are something like left : - 24 , Top : 380 , right : 260 , bottom : -334 ) And they should be all zero. See if I manually change these numbers to zero while in play mode the button appears as I would like them to be.
So that leads me the my first question : Can I set the rect transforms properties all to 0 while instantiating them ?
I also have a 2nd question : After I can successfully instantiate buttons in the right position, can I then make it so that each time I add a button its below the other buttons ? lets say that there is like 10 pixels between every instantiated button ?
Thank you for reading this.