概要
using UnityEditor; using UnityEditor.Animations; public static class Example { [MenuItem( "CONTEXT/AnimatorStateTransition/Hoge" )] private static void Hoge( MenuCommand command ) { var transition = command.context as AnimatorStateTransition; // ... } }