Skip to content

Instantly share code, notes, and snippets.

@anchan828
Created October 2, 2013 09:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anchan828/a1442127953909d2ea23 to your computer and use it in GitHub Desktop.
using UnityEngine;
public class Question7 : ScriptableObject
{
}
using UnityEditor;
using UnityEngine;
public class Qustion7Editor
{
[MenuItem("Question7/Create")]
static void CreateAsset()
{
Question7 question7 = ScriptableObject.CreateInstance<Question7>();
AssetDatabase.CreateAsset(question7, "Assets/Question7/Question7.asset");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment