当前位置:网站首页>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使用方法:
元数据说明符:
边栏推荐
- A line of R code draws the population pyramid
- namespace基础介绍
- Error: No named parameter with the name ‘foregroundColor‘
- Is there any way to bookmark the code in the visual studio project- Is there a way to bookmark code in a Visual Studio project?
- Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
- In depth analysis of kubebuilder
- Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!
- 九章云极DataCanvas公司摘获「第五届数字金融创新大赛」最高荣誉!
- 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
- 3GPP信道模型路损基础知识
猜你喜欢
Common Oracle SQL statements
AttributeError: module ‘torch._C‘ has no attribute ‘_cuda_setDevice‘
R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
Common methods of list and map
Oracle - views and sequences
Vscode 如何使用内置浏览器?
程序员上班摸鱼,这么玩才高端!
namespace基础介绍
深入解析Kubebuilder
Monitoring cannot be started after Oracle modifies the computer name
随机推荐
AttributeError: module ‘torch._C‘ has no attribute ‘_cuda_setDevice‘
Jetson nano configures pytorch deep learning environment / / to be improved
广告归因:买量如何做价值衡量?
Wechat can play the trumpet. Pinduoduo was found guilty of infringement. The shipment of byte VR equipment ranks second in the world. Today, more big news is here
JDBC link Oracle reference code
《原动力 x 云原生正发声 降本增效大讲堂》第三讲——Kubernetes 集群利用率提升实践
You can't sell the used lithography machine to China! The United States unreasonably pressured the Dutch ASML, and domestic chips were suppressed again
Ansible概述和模块解释(你刚走过了今天,而扑面而来的却是昨天)
深入解析Kubebuilder
STM32 system timer flashing LED
[digital analog] source code of MATLAB allcycles() function (not available before 2021a)
File upload vulnerability summary
Error: No named parameter with the name ‘foregroundColor‘
If you ask me about R code debugging, I will tell you head, STR, help
Is there any way to bookmark the code in the visual studio project- Is there a way to bookmark code in a Visual Studio project?
How to package the parsed Excel data into objects and write this object set into the database?
offer如何选择该考虑哪些因素
[Android kotlin collaboration] use coroutinecontext to realize the retry logic after a network request fails
Canteen user dish relationship system (C language course design)
Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist