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
↧