Example #1
0
        public Mask(Type toolType) : base(toolType)
        {
            Hidden = true;
            var previousFocus = EditorWindow.focusedWindow;

            prefabshop = EditorWindow.GetWindow <Prefabshop>();
            haveMask   = prefabshop.maskShape != null;
            maskShape  = prefabshop.maskShape;
            previousFocus.Focus();
        }
Example #2
0
        static void Init()
        {
            Prefabshop window = EditorWindow.GetWindow <Prefabshop>();
            Texture    icon   = Resources.Load("PrefabshopIcon") as Texture2D;
            // Create the instance of GUIContent to assign to the window. Gives the title "RBSettings" and the icon
            GUIContent titleContent = new GUIContent("Prefabshop", icon);

            window.titleContent = titleContent;
            window.Show();
        }