Problems to add an object to a scroll list
I'm creating an menu like those that we see in FPS games to choose one room to play. Like this:
I watched this video but I want to create a dinamic list, when the player click on "Create Room" a new item is add. I made this, but every time that I click on create room this happining
here is the button code:
public void CreateRoom()
{
//Sala mains room in portuguese
GameObject sala = Instantiate(prefabRoom, this.transform.position, this.transform.rotation) as GameObject;
sala.transform.parent = Painel.transform;
}
What I have to do to instantiate right my room?
Comment
Your answer
Follow this Question
Related Questions
Dynamic width panel 1 Answer
Responsive UI 0 Answers
Options menu won't work 0 Answers
Panel with Values From Array 1 Answer
How can I set up an in-game menu? 1 Answer