UGUI MiniMap Clicked Point In 3D Scene Position

General support.
Post Reply
User avatar
xmatrix1211
New Member
New Member
Posts: 3
Joined: Mon Jan 18, 2016 5:14 am

When I Clicked in minimap,How can i get the point position in 3d scene worldposition?
thank you!
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

You only need get the Camera position and convert to World Cordinate.
this can help you: http://docs.unity3d.com/ScriptReference ... Point.html
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
xmatrix1211
New Member
New Member
Posts: 3
Joined: Mon Jan 18, 2016 5:14 am

I mean is when i click any position in Minimap,then my player go to the position which clicked on Mimimap in 3d scene.
not screen position. thank you.
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Minimap are render by one camera (MiniMapCamera), then you need get the screen cordinates of this camera when a click over this is detected (mousePosition) and finaly use the method that I mentioned above.

Regards.
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
xmatrix1211
New Member
New Member
Posts: 3
Joined: Mon Jan 18, 2016 5:14 am

Sorry,I'm a Beginner of unity script,Can you show me some sample code for my request function above.
thank you very much.
Post Reply