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





元数据说明符:




边栏推荐
- Why do many people misunderstand technical debt
- Fiance donated 500million dollars to female PI, so that she didn't need to apply for projects, recruited 150 scientists, and did scientific research at ease!
- AttributeError: module ‘torch._C‘ has no attribute ‘_cuda_setDevice‘
- leetcode 53. Maximum subarray maximum subarray sum (medium)
- Thesis landing strategy | how to get started quickly in academic thesis writing
- [line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
- Poor math students who once dropped out of school won the fields award this year
- Flex layout and usage
- Leetcode notes
- STM32 system timer flashing LED
猜你喜欢

Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!

当 Knative 遇见 WebAssembly

Flask项目使用flask-socketio异常:TypeError: function() argument 1 must be code, not str

窗口可不是什么便宜的东西

【线段树实战】最近的请求次数 + 区域和检索 - 数组可修改+我的日程安排表Ⅰ/Ⅲ

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

Depth first traversal template principle of tree and graph
![[Android kotlin collaboration] use coroutinecontext to realize the retry logic after a network request fails](/img/e0/04f06d464e77012fbfc919e07cbb66.png)
[Android kotlin collaboration] use coroutinecontext to realize the retry logic after a network request fails

5G VoNR+之IMS Data Channel概念
随机推荐
R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
A line of R code draws the population pyramid
JS variable plus
Read of shell internal value command
使用Thread类和Runnable接口实现多线程的区别
01机器学习相关规定
Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
STM32 system timer flashing LED
JS also exports Excel
Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist
How to open win11 remote desktop connection? Five methods of win11 Remote Desktop Connection
一图看懂!为什么学校教了你Coding但还是不会的原因...
sscanf,sscanf_ S and its related usage "suggested collection"
Advertising attribution: how to measure the value of buying volume?
Ansible概述和模块解释(你刚走过了今天,而扑面而来的却是昨天)
ServiceMesh主要解决的三大痛点
What work items do programmers hate most in their daily work?
MySQL数据库(基础篇)
Common Oracle SQL statements
01 machine learning related regulations