概要
Shortcut Manager でキー割り当てが変更された時に
using UnityEditor; using UnityEditor.ShortcutManagement; using UnityEngine; [InitializeOnLoad] public static class Example { static Example() { ShortcutManager.instance.shortcutBindingChanged += args => { Debug.Log( args.shortcutId ); Debug.Log( args.oldBinding ); Debug.Log( args.newBinding ); }; } }
ShortcutManager.instance.shortcutBindingChanged
が呼び出されます