UI element comment for positioning elements dynamically in scripts.

This commit is contained in:
shadow8t4 2018-04-26 11:23:43 -05:00
parent 5651fc6034
commit bff66d9110

View file

@ -10,6 +10,8 @@ public class SceneLoader : MonoBehaviour {
public void Start()
{
buttontext = GetComponentInChildren<Text> ();
// grab a UI element, set its rectTransform.anchoredPosition = to a Vector2 of the new position coordinates.
//buttontext.rectTransform.anchoredPosition = new Vector2(buttontext.rectTransform.anchoredPosition.x, buttontext.rectTransform.anchoredPosition.y + 100);
}
public void LoadScene()