Answers for "how to get the position of a ui object in unity"

C#
2

get position of gameobject unity

GameObject.FindGameObjectWithTag("Your_Tag_Here").transform.position;
Posted by: Guest on April-14-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

Code answers related to "how to get the position of a ui object in unity"

C# Answers by Framework

Browse Popular Code Answers by Language