/// <summary>
        /// Handles the drawing and logic for the custom inspector
        /// </summary>
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            if (GUILayout.Button("Show Scene Overview"))
            {
                VNKitOverviewWindow.ShowWindow();
            }
        }
Пример #2
0
        public static void ShowSceneOverview()
        {
            GameObject existingMaster = GameObject.Find(MainGameObjectName);

            if (existingMaster == null)
            {
                EditorUtility.DisplayDialog("No VNKit Game Found", "There was no existing VNKit Game found in the Unity scene so we cannot load the scene overview.", "Okay");
            }
            else
            {
                VNKitOverviewWindow.ShowWindow();
            }
        }
        /// <summary>
        /// Simply show the Overview Window
        /// </summary>
        public static void ShowWindow()
        {
            VNKitOverviewWindow window = (VNKitOverviewWindow)EditorWindow.GetWindow(typeof(VNKitOverviewWindow));

            window.PopulateNodes();
        }