private void CreateButton() { var button = new CButton(); var buttonObj = button.CreateButtonWithDefaultSettings(); var text = new CText(); text.Alignment = TextAnchor.MiddleCenter; text.CreateTextWithDefaultSettings(buttonObj.transform); }
private void CreateButtonWithoutText() { var button = new CButton(); button.CreateButtonWithDefaultSettings(); }