Quantcast
Channel: Answers by "ransomink"
Viewing all articles
Browse latest Browse all 80

Answer by ransomink

$
0
0
You are declaring a local `MousePos ` variable in your Update method; this value is being used in your Instantiate method because both are in the same scope. Your class variable `MousePos ` is not being used at all. Remove the `Vector3 ` declaration from `MousePos ` in Update: `MousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition); `

Viewing all articles
Browse latest Browse all 80

Trending Articles



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