Raycast vector3 position

Hello, I would like to make strategy game with unit (of my soldiers) choosing marker… I have plan how to do it, but last thing I need is know how to get vector3(x,y,z) from Raycast… I saw lot of sites and maybe full forum, but I still didn´t got an answer :slight_smile: Please help! Thanks.

I hope i understand what u want:
If u click with left mouse and raycast with a RaycastHit, then u will get the Vector3.

cam = its your Camera

if (Input.GetMouseButtonDown(0))
        {
            RaycastHit info;
            if (Physics.Raycast(cam.ScreenPointToRay(Input.mousePosition), out info))
            {
                //info.point;  <<=== the Vector u are searching for
            }
        }