#show your object hierarchy and your code

1 messages · Page 1 of 1 (latest)

quartz frigate
#

ok

#

script for the name of the nametag and lookat

hybrid badge
#

and which object is this script attached to?

quartz frigate
#

to the plater

#

player

hybrid badge
#

Well then obviously the player is going to rotate

quartz frigate
#

yeah xD

#

i know.. but idk how to fix it

hybrid badge
#

rotate the canvas instead of the player

quartz frigate
#

huh.... but how?

hybrid badge
#

NameCanvas.transform.LookAt instead of just transform.LookAt

#

you just need to rotate the correct object.

quartz frigate
#

OH

#

ok ok.... thanks, i feel so stupid now

#

imma test it..

#

doesnt work 😦

hybrid badge
#

be more specific

quartz frigate
#

it doesnt rotate

hybrid badge
#

any errors?
What did you assign to the NameCanvas field?

quartz frigate
#

and the text doesnt update now.. but thats my problem

quartz frigate
hybrid badge
#

from where

quartz frigate
#

where the text is attatched to

hybrid badge
#

what precisely did you drag/drop

quartz frigate
#

are you in a mood to come in a call?

hybrid badge
#

no

quartz frigate
#

ok

#

that wuild make it easyer but fine

quartz frigate
#

OH wait

#

i think i know the problem

#

ok it works

#

the name thing doesnt... but thats a networking issue

#

i dont know if you want to help with that?

#

nvm i know a fix

#

oh and the canvas rotates in a oppisite direwction...

#

so its reversed

#

how do i chainge that

#

i gueuss its code

#

?

hybrid badge
#

yes, code

quartz frigate
#

ok ok

#

what do i need to add? do you wanna help?

#

i am a little confused by all the positions and rotations and shi

#

You still here? 🙂

hybrid badge
#

NameCanvas.transform.rotation = Quaternion.LookRotation(transform.position - camera.position);

quartz frigate
#

ok thanks

#

imma try it

#

it works, thank you verry much 😄