Files
loneseDocument/Source/lonese/AMyActor.md
meishibiezb 29a3f77908 init
2026-06-04 21:44:13 +08:00

36 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AMyActor
## 基本信息
- **类型**: UCLASS
- **父类**: AActor
- **源文件**: Source/lonese/MyActor.h
- **模块**: lonese
## 功能概述
AMyActor 是项目中的基础占位 Actor 类仅包含标准生命周期函数BeginPlay/Tick无任何自定义逻辑。构造函数设置 bCanEverTick 为 true两个覆写函数均仅调用 Super。
## 设计用意
由 UE 类向导生成的样板起步类,作为骨架 Actor 准备后续自定义。当前阶段尚未解决具体的游戏性问题,仅作为新 Actor 类型的可扩展基类存在。
## 职责范围
提供 BeginPlay 和 Tick 生命周期钩子,不含自定义逻辑。可作为新 Actor 类型的扩展基类使用。
## 项目内依赖
| 依赖项 | 关系 | 源文件 |
|--------|------|--------|
|(无)| — | 不依赖任何项目内类,仅引用引擎头文件 |
## 对外接口
AMyActor 未定义任何 UFUNCTION 或 UPROPERTY对外暴露的能力全部来自 AActor 基类。构造函数将 bCanEverTick 设为 true。由于不包含自定义逻辑C++ 和 Blueprint 调用者无法通过该类调用任何项目特定的方法。
## 使用方法
作为新 Actor 类型的 C++ 基类或 Blueprint 父类使用。因其仅包含空覆写的 BeginPlay/Tick 且无自定义成员,适合用作任意新 Actor 的起点。
- 类声明:`Source/lonese/MyActor.h:10-26` — 继承自 AActor无自定义 UFUNCTION/UPROPERTY。
- 构造函数:`Source/lonese/MyActor.cpp:7-12` — 设置 `bCanEverTick = true`
- BeginPlay 覆写:`Source/lonese/MyActor.cpp:15-19` — 仅调用 `Super::BeginPlay()`
- Tick 覆写:`Source/lonese/MyActor.cpp:22-25` — 仅调用 `Super::Tick(DeltaTime)`
## 用例
项目中无实际调用方。AMyActor 未被任何项目 C++ 类或 Blueprint 继承或引用Plugins/UnrealClaude 中的引用为文档示例,非项目代码)。