Skip to content

Instantly share code, notes, and snippets.

@t5ujiri
Created December 19, 2017 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t5ujiri/05a666c6c6bba1c727cf6874e129a589 to your computer and use it in GitHub Desktop.
Save t5ujiri/05a666c6c6bba1c727cf6874e129a589 to your computer and use it in GitHub Desktop.
Assets/Create下にエディタ拡張を追加する
namespace ScriptNamespace
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class NewScriptSettingCreator : Editor {
[MenuItem ("Assets/Create/ScriptNamespace/NewScriptSetting")]
static void Create(){
var instance = CreateInstance<NewScriptSetting>();
AssetDatabase.CreateAsset(instance, "Assets/Resources/NewScriptSetting.asset");
AssetDatabase.Refresh();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment