#text position keeps shifting in game
1 messages · Page 1 of 1 (latest)
use the rect transform's anchoredPosition instead for UI stuff
1 messages · Page 1 of 1 (latest)
So I created a TextMeshPro text on my canvas and I want to control its position and scale through a script.
So I wrote this _screenText.transform.position = new Vector3(_posX, _posY, 0);
Where _posX = 0 and _posY = -160
However, within the game, the text moves to this position (-400, -291, 0)
Any idea why?
use the rect transform's anchoredPosition instead for UI stuff