Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Instantiate an Object by clicking on UI Button

$
0
0
The question is pretty straight; I want the user to click on an UI Button (which I already created) and to have a certain object be instantiated in the world.
Now, I have already a script created to instantiate this object, so everything the UI Button would have to do is actually use it.
Any ideas? I did try the Mouse Down function of the Button UI but I had no luck there.

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>