コード例 #1
0
        private static void CreateExtensionServiceMenuItem()
        {
            if (window != null)
            {
                Debug.Log("Only one window allowed at a time");
                // Only allow one window at a time
                return;
            }

            window = EditorWindow.CreateInstance <ExtensionServiceWizard>();
            window.titleContent = new GUIContent("Create Extension Service");
            window.minSize      = minWindowSize;
            window.ResetCreator();
            window.Show(true);
        }
        private static void CreateExtensionServiceMenuItem()
        {
            if (window != null)
            {
                Debug.Log("Only one window allowed at a time");
                return;
            }

            // Dock it next to the Scene View.
            window = GetWindow <ExtensionServiceWizard>(typeof(SceneView));
            window.titleContent = new GUIContent("Extension Service Wizard", EditorGUIUtility.IconContent("d_DefaultSorting").image);
            window.minSize      = minWindowSize;
            window.ResetCreator();
            window.Show();
        }