title: Unity - move 3d object in an AR scene
body: <p>I have an AR scene that has one AR camera, an image target and 3d object below as.</p>
  
  <p><img src="https://i.stack.imgur.com/GVUDJ.jpg" alt="enter image description here"></p>
  
  <p>I create an <code>.cs</code> file and attach to ARCamera. I want to move AR object to mouse click position. I tried many codes for this. But I couldn't success it. </p>
  
  <p>I know that <code>Input.mouseposition</code> returns screen position. I convert to <code>ScreenToWorldPosition</code> and put 3d object on this position. 3d object is moved, but not mouse click position. I don't know where it is moved.</p>
  
  <p>How can I move to mouse click position? My code is here :</p>
  
  <pre><code>Camera cam;
  Vector3 target = new Vector3(0.0f, 10f,0.5f);
  // Use this for initialization
  void Start () {
      if (cam == null)
          cam = Camera.main;
  }
  void Update()
  {
      if (Input.GetMouseButtonDown(0)) {
          Debug.Log("MouseDown");
  
          Vector3 mousePos = Input.mousePosition;
          mousePos = cam.ScreenToWorldPoint(mousePos);
          GameObject.Find("Car1").gameObject.transform.position = mousePos;
      }                                                                
  }
  </code></pre>
  
  <p><strong>EDIT 1</strong>
  If I add a plane to scene, I can move to the position of mouse click only on the plane. The code is taken from <a href="http://coffeebreakcodes.com/move-object-to-mouse-click-position-unity3d/" rel="nofollow noreferrer">here</a>. But the plane prevents to show AR camera view. The screenshot is below:</p>
  
  <p><img src="https://i.stack.imgur.com/fGEx7.jpg" alt="enter image description here"></p>