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

            if (GUILayout.Button("Show Scene Overview"))
            {
                VNKitOverviewWindow.ShowWindow();
            }
        }
Esempio n. 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();
            }
        }