0
\$\begingroup\$

I tried to code an image to follow the character using canvas but it jerks when moving. Is this a bug? Do you have any solution to fix it?

https://youtu.be/OnT9Pabgi2g

public class ImageScript : MonoBehaviour
{
 RectTransform mRectTransform;
 // Start is called before the first frame update
 void Start()
 {
 mRectTransform = GetComponent<RectTransform>(); 
 }
 // Update is called once per frame
 void Update()
 {
 mRectTransform.transform.position = Player.playerInstance.transform.position + new Vector3(0, 1, 0);
 }
}
asked May 25 at 2:38
\$\endgroup\$
1
  • \$\begingroup\$ Do you observe this if you change Update to LateUpdate? \$\endgroup\$ Commented May 25 at 2:54

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.