Answers for "unity set ui position"

C#
14

unity set position

// To set the position of a gameobject use the following
GameObject.transform.position = new Vector3(x, y, z);
Posted by: Guest on February-22-2020
0

unity position ui element

// To get or set the position of a UI element, see below:
GameObject.GetComponent<RectTransform>().anchoredPosition;
Posted by: Guest on February-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language