Skip to content

Instantly share code, notes, and snippets.

@baba-s
Created March 21, 2024 23:38
Show Gist options
  • Save baba-s/3eab5c9867bf7cfefd782ff47b5a682f to your computer and use it in GitHub Desktop.
Save baba-s/3eab5c9867bf7cfefd782ff47b5a682f to your computer and use it in GitHub Desktop.
using UnityEditor;
public static class Example
{
[MenuItem( "Tools/Hoge" )]
private static void Hoge()
{
try
{
AssetDatabase.StartAssetEditing();
// ...
}
finally
{
AssetDatabase.StopAssetEditing();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment