void Start() { panel = GetComponent <UIPanel> (); UIPanel.Position centerPos = new UIPanel.Position(Center, TextAnchor.MiddleCenter, TextAnchor.MiddleCenter); panel.AddPosition(centerPos); }