Hello,
I am fairly new to Unity, I have done many of the tutorials and now I am trying to reach out on my own from scratch(Much more difficult than I thought). I am trying to make a simple game were Third Person runs through a maze and teleports to different layers or areas. He will teleport where ever the user clicks. How do I go about doing this. I figure I have to use a Ray of some sorts but every thing I have tried doesn’t seem to work out. I know how to set the position of the character and change the position, just not how to pick up the X,Y,Z of my mouse at the time of a click. Any help getting pointed in the right direction would be appreciated. I have been learning in C# and would like to try to stay in C# if possible. Also I am not asking for you to do this for me but explain how to go about doing this so I know how to apply it to other projects later on.
This link is a start.
Then there is this unity Answer that I think should help, if not solve your problem.
Detect Mouse Click coordinates on terrain in C
I’m not too fluent with RayCasting either though, so if you have further questions for clarification… perhaps other members can chime in too.