当前位置:网站首页>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使用方法:





元数据说明符:




边栏推荐
- Two divs are on the same line, and the two divs do not wrap "recommended collection"
- PLC Analog output analog output FB analog2nda (Mitsubishi FX3U)
- MySQL数据库(基础篇)
- You can't sell the used lithography machine to China! The United States unreasonably pressured the Dutch ASML, and domestic chips were suppressed again
- ServiceMesh主要解决的三大痛点
- 浙江大学周亚金:“又破又立”的顶尖安全学者,好奇心驱动的行动派
- Structure actual training camp | after class homework | module 6
- Depth first traversal template principle of tree and graph
- 为什么很多人对技术债务产生误解
- Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
猜你喜欢

How to package the parsed Excel data into objects and write this object set into the database?

Introduction to the PureMVC series

装饰器基础学习02

Ansible概述和模块解释(你刚走过了今天,而扑面而来的却是昨天)

01 machine learning related regulations

深入解析Kubebuilder
![[Yugong series] go teaching course 005 variables in July 2022](/img/29/2bb30443e1e418556b5e08932f75b4.png)
[Yugong series] go teaching course 005 variables in July 2022

JS variable plus

Programmers go to work fishing, so play high-end!

MySQL forgot how to change the password
随机推荐
Jetson nano configures pytorch deep learning environment / / to be improved
STM32F103 realize IAP online upgrade application
【愚公系列】2022年7月 Go教学课程 005-变量
AttributeError: module ‘torch._C‘ has no attribute ‘_cuda_setDevice‘
Lecture 3 of "prime mover x cloud native positive sounding, cost reduction and efficiency enhancement lecture" - kubernetes cluster utilization improvement practice
Function pointer and pointer function in C language
A simple and beautiful regression table is produced in one line of code~
How to package the parsed Excel data into objects and write this object set into the database?
ServiceMesh主要解决的三大痛点
Terms used in the Web3 community
【数模】Matlab allcycles()函数的源代码(2021a之前版本没有)
5G VoNR+之IMS Data Channel概念
PLC Analog output analog output FB analog2nda (Mitsubishi FX3U)
mpf2_ Linear programming_ CAPM_ sharpe_ Arbitrage Pricin_ Inversion Gauss Jordan_ Statsmodel_ Pulp_ pLU_ Cholesky_ QR_ Jacobi
指针与数组在函数中输入实现逆序输出
namespace基础介绍
C语言中函数指针与指针函数
JS variable plus
组织实战攻防演练的5个阶段
Gpt-3 is a peer review online when it has been submitted for its own research