private static void OpenShortcutsWindows() { _shortcutsData = Resources.Load <Editor_ShortcutsData>("Editor_ShortcutsData"); Rect windowRect = WindowRect(_shortcutsData.Shortcuts.Length); _shortcutWindow = EditorWindow.GetWindowWithRect <Editor_ShortcutsWindow>(windowRect, true); _shortcutWindow.minSize = _shortcutWindow.maxSize = windowRect.size; _shortcutWindow.Init(_shortcutsData); }
public void Init(Editor_ShortcutsData data) { _data = data; }