hello guys,i want to make a quiz game and i think using UI’s button is the easist way in my mind.So,i want to know how to set UI’s button position using script?
1 Like
Set the anchoredPosition property on the button’s RectTransform.
1 Like
without knowing what your canvas hierarchy looks like… you can also use the “layout” components on the panel/whatever the buttons are being added to, it’ll automatically position and space the buttons (technically “all children”) based on the layout component’s settings.
1 Like