Files
XCEngine/docs/api/XCEngine/Components/ComponentFactoryRegistry/Get.md

700 B

ComponentFactoryRegistry::Get

获取相关状态或对象。

static ComponentFactoryRegistry& Get();

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

参数: 无。

返回: ComponentFactoryRegistry& - 返回值语义详见头文件声明。

示例:

#include <XCEngine/Components/ComponentFactoryRegistry.h>

void Example() {
    auto& instance = XCEngine::Components::ComponentFactoryRegistry::Get();
    (void)instance;
}

相关文档