UI element comment for positioning elements dynamically in scripts.
This commit is contained in:
parent
5651fc6034
commit
bff66d9110
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue