r/UnityHelp • • Apr 30 '22

Ui problem (begginer)

2 Upvotes

5 comments sorted by

1

u/SamElTerrible Apr 30 '22

You want that text object to constantly look at the camera. You can try attaching a script to that text that has the following:

void Update () { transform.LookAt(camera.main); }

1

u/_somebody420_ Apr 30 '22

Thanks
!solved

3

u/3JUP1T3R Apr 30 '22

Just remove the canvas as a child of the camera, that should fix it

1

u/Bonejob Code Guru May 02 '22

This is a valid answer the reason the canvas is rotating with the camera is that it is a child. There was no indication of what the expected outcome was.

1

u/_somebody420_ May 08 '22

yea I just relised that when I made this question solved, but was too lazy to write about this.