Quantcast
Channel: Answers by "belvita"
Viewing all articles
Browse latest Browse all 91

Answer by belvita

$
0
0
you mean u want to get the world coordinates? if yes then: GameObject x=Instantiate (prefab, new Vector2(Input.mousePosition.x, Input.mousePosition.y, Quaternion.identity); public Transform target; void Update() { Vector3 screenPos = camera.WorldToScreenPoint(x.transform.position); now ur gameobject has the coordinates in screen position

Viewing all articles
Browse latest Browse all 91

Trending Articles



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