Inheritance: BaseButton
Beispiel #1
0
        private void CreateEmptyButton()
        {
            EmptyButton = Object.Instantiate(_verticalLayout !.transform.Find("SettingsEntryButton, Bool (Audio Focus)").gameObject);

            Object.DestroyImmediate(EmptyButton.GetComponentInChildren <CarouselController>());
            Object.DestroyImmediate(EmptyButton.GetComponentInChildren <ButtonSkinController>());
            Object.DestroyImmediate(EmptyButton.transform.Find("CarouselRect").gameObject);
        }
Beispiel #2
0
        protected static void CreateEmptyButton()
        {
            GameObject go = CreateGameObject("EmptyButton", true);

            EmptyButton button = go.AddComponent <EmptyButton>();
        }