This script provides a context menu item in the Project window (as well as an extra option in the Assets>Create
menu) that will instantiate the selected Scriptable object and save it as an asset to a folder of your choosing.
Throw this script in any folder called Editor
in your assets folder.
- In the
Project
window, right click on a script that inherits fromScriptableObject
. The usual context menu will pop up. - In the context menu go to
Create
>Asset from ScriptableObject
. A save file dialog will pop up. - In the dialog choose your folder and file name and hit save.
- Done.