当前位置:网站首页>U++ 游戏类 学习笔记
U++ 游戏类 学习笔记
2022-07-06 22:36:00 【是秃头的兔子呀】
在每个游戏类头文件的顶部,需要包含生成的头文件(自动创建)
ClassName不是真的是字符串ClassName,而是类名,如下
#include "ClassName.generated.h"
类声明还定义了通过类说明符和元数据 可能需要的其他引擎和编辑器特定行为。此外,GENERATED_BODY()
宏必须放在类体的最开头。
UCLASS([specifier, specifier, ...], [meta(key=value, key=value, ...)])
class ClassName : public ParentName
{
GENERATED_BODY()
}
声明类时,可以将类说明符添加到声明中,以控制类在引擎和编辑器的各个方面的行为方式。
在声明类、接口、结构、枚举、枚举值、函数或属性时,您可以添加元数据说明符来控制它们如何与引擎和编辑器的各个方面进行交互。每种类型的数据结构或成员都有自己的元数据说明符列表。
一些构造函数可能位于每个模块的特殊“构造函数”文件中。例如,AActor::AActor
构造函数可以在EngineConstructors.cpp
. DEFAULTS
这是从先前使用块到使用构造函数的自动转换过程的结果。随着时间的推移,这些将被移动到它们各自的类源文件中。
函数说明符:
CallInEditor使用方法:
元数据说明符:
边栏推荐
- Code source de la fonction [analogique numérique] MATLAB allcycles () (non disponible avant 2021a)
- Introduction to the PureMVC series
- 史上最全学习率调整策略lr_scheduler
- Basic idea of counting and sorting
- What work items do programmers hate most in their daily work?
- 如何设计 API 接口,实现统一格式返回?
- 01 machine learning related regulations
- 抖音或将推出独立种草社区平台:会不会成为第二个小红书
- Ansible概述和模块解释(你刚走过了今天,而扑面而来的却是昨天)
- DFS and BFS concepts and practices +acwing 842 arranged numbers (DFS) +acwing 844 Maze walking (BFS)
猜你喜欢
[line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
计数排序基础思路
Local tool [Navicat] connects to remote [MySQL] operation
【Android Kotlin协程】利用CoroutineContext实现网络请求失败后重试逻辑
Ansible概述和模块解释(你刚走过了今天,而扑面而来的却是昨天)
5G VoNR+之IMS Data Channel概念
Ansible中的inventory主机清单(预祝你我有数不尽的鲜花和浪漫)
Error: No named parameter with the name ‘foregroundColor‘
Meow, come, come: do you really know if, if else
[hand torn STL] list
随机推荐
U++4 接口 学习笔记
STM32 system timer flashing LED
组织实战攻防演练的5个阶段
Meow, come, come: do you really know if, if else
National meteorological data / rainfall distribution data / solar radiation data /npp net primary productivity data / vegetation coverage data
如何设计 API 接口,实现统一格式返回?
offer如何选择该考虑哪些因素
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
3GPP信道模型路损基础知识
装饰器基础学习02
树与图的深度优先遍历模版原理
JS also exports Excel
Factor analysis r practice (with R installation tutorial and code)
Tiktok may launch an independent grass planting community platform: will it become the second little red book
Talk about the importance of making it clear
Detect when a tab bar item is pressed
Flask项目使用flask-socketio异常:TypeError: function() argument 1 must be code, not str
A picture to understand! Why did the school teach you coding but still not
leetcode 53. Maximum subarray maximum subarray sum (medium)