static public void OpenPrefabTool() { PrefabWin prefabWin = (PrefabWin)EditorWindow.GetWindow <PrefabWin>(false, "Prefab Win", true); prefabWin.autoRepaintOnSceneChange = true; prefabWin.Show(); }
static public void OpenPrefabTool() { _labelDefaultFontSize = EditorStyles.label.fontSize; PrefabWin prefabWin = (PrefabWin)EditorWindow.GetWindow <PrefabWin>(false, "Prefab Win", true); prefabWin.autoRepaintOnSceneChange = true; prefabWin.Show(); }
void OnDisable() { instance = null; foreach (Item item in mItems) { DestroyTexture(item); } Save(); }
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; }