Skip to content

Commit

Permalink
Merge pull request #3 from mohsinkhan26/Development
Browse files Browse the repository at this point in the history
editor utilities added
  • Loading branch information
mohsinkhan26 authored Jul 7, 2017
2 parents c1af4ce + e8b0a32 commit b1139b7
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Author : Mohsin Khan
* Website : http://mohsinkhan.000webhostapp.com/
*/
using UnityEditor;
using UnityEngine;

namespace MK.Common.Miscellaneous
{
public static class GameUtilities
{
[MenuItem("Tools/MK Assets/Check All Plugins", false, 50)]
public static void CheckAllPlugins()
{
Application.OpenURL("https://www.assetstore.unity3d.com/en/#!/search/page=1/sortby=popularity/query=publisher:28971/");
}

[MenuItem("Tools/MK Assets/OpenScene/Sample Scene")]
public static void OpenSampleScene()
{
OpenScene("Sample");
}

[MenuItem("Tools/MK Assets/OpenScene/Mono Direct - Demo Scene")]
public static void OpenMonoDirectDemoScene()
{
OpenScene("Mono Direct/MonoDirectDemo");
}

static void OpenScene(string name)
{
if (UnityEditor.SceneManagement.EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
{
UnityEditor.SceneManagement.EditorSceneManager.OpenScene("Assets/MK Assets/" + name + ".unity");
}
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b1139b7

Please sign in to comment.