This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
namespace ChrisDirkis.Utility.Editor { | |
public class CreateScriptableObjectInstance : MonoBehaviour { | |
private const string MenuItemAddress = "Assets/Create/Scriptable Object Instance"; | |
private const int Priority = int.MaxValue; | |
[MenuItem(MenuItemAddress, priority = Priority)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
// Probably best to compile this to a DLL, or put in a folder with an | |
// assmebly definition set to editor only. Otherwise, put in an | |
// Editor folder inside your project. |