Search code examples
unity-game-enginevuforia

How to place text to follow an 3d object?


I am developing AR App with Vuforia library in Unity.

I want that text must place above of sphere all the time. At same time, text must look to screen front face. (text should remain constant, should not return)

in edit screen

in app


Solution

  • add the text as a child of the planet and in update do

    void Update(){
    text.transform.LookAt(Camera.main.transform.position);
    }