Quantcast
Channel: Questions in topic: "follow"
Viewing all articles
Browse latest Browse all 536

Moving Object At MousePosition.X

$
0
0
Hello i'm Trying to Make a CrossHair But Not As Texture, i'm Making it as Gameobject but i got problem in making it follow the mouse public GameObject CrossHair; //Start Void CrossHair = Instantiate(CrossHair,transform.position,transform.rotation) as GameObject; //Update Void CrossHair.transform.position.x =(Camera.main.ScreenToWorldPoint(Input.mousePosition).x); what is the wrong in this code

Viewing all articles
Browse latest Browse all 536

Trending Articles