コード例 #1
0
ファイル: PrefabWin.cs プロジェクト: zuohu/UGUI-Editor
        static public void OpenPrefabTool()
        {
            PrefabWin prefabWin = (PrefabWin)EditorWindow.GetWindow <PrefabWin>(false, "Prefab Win", true);

            prefabWin.autoRepaintOnSceneChange = true;
            prefabWin.Show();
        }
コード例 #2
0
        static public void OpenPrefabTool()
        {
            _labelDefaultFontSize = EditorStyles.label.fontSize;
            PrefabWin prefabWin = (PrefabWin)EditorWindow.GetWindow <PrefabWin>(false, "Prefab Win", true);

            prefabWin.autoRepaintOnSceneChange = true;
            prefabWin.Show();
        }
コード例 #3
0
 void OnDisable()
 {
     instance = null;
     foreach (Item item in mItems)
     {
         DestroyTexture(item);
     }
     Save();
 }
コード例 #4
0
        void OnEnable()
        {
            instance = this;

            Load();

            mContent                 = new GUIContent();
            mStyle                   = new GUIStyle();
            mStyle.alignment         = TextAnchor.MiddleCenter;
            mStyle.padding           = new RectOffset(2, 2, 2, 2);
            mStyle.clipping          = TextClipping.Clip;
            mStyle.wordWrap          = true;
            mStyle.stretchWidth      = false;
            mStyle.stretchHeight     = false;
            mStyle.normal.textColor  = UnityEditor.EditorGUIUtility.isProSkin ? new Color(1f, 1f, 1f, 0.5f) : new Color(0f, 0f, 0f, 0.5f);
            mStyle.normal.background = null;
        }