Skip to content

Instantly share code, notes, and snippets.

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