Reply To: I would like to have a button, that when I press it, it instantiates a prefab at a certain location. For me that sounded s…

Forum Archive I would like to have a button, that when I press it, it instantiates a prefab at a certain location. For me that sounded s… Reply To: I would like to have a button, that when I press it, it instantiates a prefab at a certain location. For me that sounded s…

#23057
Kyle Shaffer
Participant

    Wait no what am I saying I’m a dumbass. Why is it I always ask questions and then RIGHT after asking it I figure it out. Okay so just make a public void like lets say public void CreateWeapon (Int scene), (because you guys did Int Scene and im not creative at all), then underneath just referance your other function, so I called that SpawnWeapon();. Now that I through the int in there, I can refrence it from the button and walaaaa. Thanks guys your videos are the best on the internet, even if they don’t specifically apply to the situation, you provide so much insight it allows us to explore more objects. Great stuff!