still got no clue. Any idea, how I can rotate my 2D arrow Image on my 2D map into the direction the 3D Player (only Y axxis?), standing on the ground is facing?
Yes the Player is a human running around on the ground in 3D.
He can have a look on a 2D map. Then there is an 2D arrow (loaded as UI Image) on the map.
The question is how can I 2D rotate the flat Image arrow on the 2D map so it has the same angle like the 3D Player.
See the black arrow in the middle.
playerTexture.transform.localRotation=newQuaternion(0,0,Globals.PlayerTransform.localRotation.yMathf.PI2f,1);
(this is not really working, but it is better than before)
playerTexture is 2D UI Image, Globals.PlayerTransform is transform of 3D Player.