Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

How To Detect MouseClick Using Raycast Java Script

$
0
0
Hello so basically I'm making this game, with several objects being clickable. I want it so that the script doesn't need to be under every single game object, which function Mouse Clicked needs. I found out about Raycast but I'm not sure how to use it. The Object's Name Is First Plot. Any Help Would be nice. I want it that once the object is clicked it's destroyed using raycast rather then Mouse Clicked. Thanks! -New to unity

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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