Ejemplo n.º 1
0
        /// <summary>
        /// 设置当前显示值
        /// </summary>
        /// <param name="item"></param>
        public void OnSetDropdownText(KGUI_DropdownItem item)
        {
            currentItem   = item;
            textName.text = item.Name;

            Template.SetActive(false);
        }
        private void OnEnable()
        {
            dropdownItem = serializedObject.targetObject as KGUI_DropdownItem;

            if(buttonType==null)
                buttonType=new KGUIButtonTypeEditor();

            buttonType.OnInstantiation(serializedObject);
            
        }