- Home /
 
Text is backward when its parent flipped.
I have character gameObject and text gameObject inside of it as a child.But when character turn right or left the text is flipped like mirrors does.
Answer by highpockets · Mar 08, 2021 at 09:48 PM
This is what is expected. You have 3 options for resolving it.
Have the child do the opposite rotation that the parent is doing.
Have the child (text) look at a target (camera), Unity has a function for it
transform.LookAt(camera.transform);Take the child off of the parent and just get it to follow the position of the parent instead and thus it won’t be affected by the parent rotation/scale.
Could you write a simple example for first solving process?
I don’t have any idea how you are rotating the parent, but let’s say you are only spinning around the y axis with transform.Rotate():
 Transform child;
 
 //assu$$anonymous$$g this script is on the parent
 void Update()
 {
     //rotate 5 degrees around the y axis relative to the world on the parent
     transform.Rotate(5, transform.down, Space.World);
     //rotate the opposite way on the child
     child.Rotate(-5, transform.down, Space.World);
 }
 
                  Your answer
 
             Follow this Question
Related Questions
Having trouble moving character backwards... 1 Answer
transform.LookAt makes text backward? 0 Answers
3D Text Size Relative To Screen? 4 Answers
How to add Japanese 2D text to 3D world 1 Answer
Blender model ugly textur 1 Answer