I don't like GUI crosshairs, so I drew my own using raycasting, see here:
public class CrossHairs : MonoBehaviour {
public GameObject crossHairs;
private void Update() {
Ray myRay = GameObject.FindWithTag("Camera").camera.ScreenPointToRay(new Vector2(Screen.width/2, Input.mousePosition.y));
RaycastHit myHit = new RaycastHit();
if (Physics.Raycast(myRay, out myHit, Mathf.Infinity)) {
GameObject inst = (GameObject) Instantiate(crossHairs, myHit.point, transform.rotation);
Destroy(inst, 0.02f);
}
}
The GameObject "crossHairs" is a particle system which is instantiating 1 particle and is using a transparent/cutout/diffuse material (of which is my drawn crosshair).
1 Problem is that it is blinking..and is the top quadrent (I suppose) is covered up by the wall.