I’m creating a UI compass. I need to rotate the arrow after the Player. How can I get access to the rotation of the image? Tried this:
public RectTransform Arrow;
public GameObject Player;
void Update () {
Arrow.Rotate = new Vector3(Arrow.rotation.x, Arrow.rotation.y, Player.transform.rotation.z);
}
it’s doesn’t working