\$\begingroup\$
\$\endgroup\$
1
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?
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);
}
}
You must log in to answer this question.
lang-cs
Update
toLateUpdate
? \$\endgroup\$