31 lines
608 B
Markdown
31 lines
608 B
Markdown
# Component::Awake
|
|
|
|
公开方法,详见头文件声明。
|
|
|
|
```cpp
|
|
virtual void Awake();
|
|
```
|
|
|
|
该方法声明于 `XCEngine/Components/Component.h`,当前页面用于固定 `Component` 类目录下的方法级 canonical 路径。
|
|
|
|
**参数:** 无。
|
|
|
|
**返回:** `void` - 无返回值。
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
#include <XCEngine/Components/Component.h>
|
|
|
|
void Example() {
|
|
XCEngine::Components::Component object;
|
|
// 根据上下文补齐参数后调用 Component::Awake(...)。
|
|
(void)object;
|
|
}
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [返回类总览](Component.md)
|
|
- [返回模块目录](../Components.md)
|