Answers for "how to make an ui to follow gameobject"

C#
0

how to make an ui to follow gameobject

public Transform target;
 
void Update ()
{
     Vector3 wantedPos = Camera.main.WorldToScreenPoint(target.position);
     transform.position = wantedPos;
}
Posted by: Guest on July-19-2020

Code answers related to "how to make an ui to follow gameobject"

C# Answers by Framework

Browse Popular Code Answers by Language