On Button Click Create a gameobject (ui,no mouse stuff)
I Made a inventory but i want to like when i press a button called "Chair" It will spawn a chair if i click it, and i want a function that i can delete every gameobjects i spawn with the button of my canvas/ui.
This also has happend to my friend but he skipped that part.
Please tell me the script or any tutorials of how to do this, it really makes me mad when i only find a mouse one.
I Want only a function to do: Create gameobject on clicked button ui and able to delete it.
and the script needs something that i can choose what prefav/model i want to choose to put it in
Your answer
Follow this Question
Related Questions
On Button Click Create a gameobject (ui,no mouse stuff) 1 Answer
Have a UI Button do what my Input.GetButtonDown("Use") does? 0 Answers
Why can I not pick up my moving/wandering objects yet I can pick up those that stay in one place? 0 Answers
I need help making a 2 player car game 1 Answer
Scripts Interfering With Each Other 1 Answer