Files
XCEngine/docs/api/XCEditor/Foundation/UIEditorShortcutManager/SetHostCommandHandler.md

804 B

UIEditorShortcutManager::SetHostCommandHandler

设置相关状态或配置。

void SetHostCommandHandler(UIEditorHostCommandHandler* handler);

该方法声明于 XCEditor/Foundation/UIEditorShortcutManager.h,当前页面用于固定 UIEditorShortcutManager 类目录下的方法级 canonical 路径。

参数:

  • handler - 参数语义详见头文件声明。

返回: void - 无返回值。

示例:

#include <XCEditor/Foundation/UIEditorShortcutManager.h>

void Example() {
    XCEngine::UIEditorShortcutManager object;
    // 根据上下文补齐参数后调用 UIEditorShortcutManager::SetHostCommandHandler(...)。
    (void)object;
}

相关文档