Files
XCEngine/docs/api/XCEngine/Core/Layer/onAttach.md

565 B

Layer::onAttach

公开方法,详见头文件声明。

virtual void onAttach();

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

参数: 无。

返回: void - 无返回值。

示例:

#include <XCEngine/Core/Layer.h>

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

相关文档