当前位置:网站首页>U++ game learning notes
U++ game learning notes
2022-07-07 05:03:00 【It's a bald rabbit】
At the top of each game class header , You need to include the generated header file ( Automatically create )
ClassName Not really a string ClassName, It's the class name , as follows
#include "ClassName.generated.h"
Class declarations also define class specifiers And metadata Other engine and editor specific behaviors that may be required . Besides ,GENERATED_BODY()
Macros must be placed at the beginning of the class body .
UCLASS([specifier, specifier, ...], [meta(key=value, key=value, ...)])
class ClassName : public ParentName
{
GENERATED_BODY()
}
When declaring a class , Can be class A specifier is added to the declaration , To control how classes behave in all aspects of the engine and editor .
In the declaration class 、 Interface 、 structure 、 enumeration 、 Enumerated values 、 Function or property , You can add Metadata Specifiers to control how they interact with all aspects of the engine and editor . Each type of data structure or member has its own metadata specifier list .
Some constructors may be located in a special part of each module “ Constructors ” In file . for example ,AActor::AActor
Constructors can be used in EngineConstructors.cpp
. DEFAULTS
This is the result of the automatic conversion process from the previous use of blocks to the use of constructors . as time goes on , These will be moved to their respective class source files .
Function specifiers :
CallInEditor Usage method :
Metadata specifier :
边栏推荐
- [practice leads to truth] is the introduction of import and require really the same as what is said on the Internet
- 深入解析Kubebuilder
- A line of R code draws the population pyramid
- When knative meets webassembly
- 谈谈讲清楚这件事的重要性
- CentOS 7.9安装Oracle 21c历险记
- Read of shell internal value command
- 全国气象数据/降雨量分布数据/太阳辐射数据/NPP净初级生产力数据/植被覆盖度数据
- Gavin teacher's perception of transformer live class - rasa project actual combat e-commerce retail customer service intelligent business dialogue robot microservice code analysis and dialogue experim
- LabVIEW在打开一个新的引用,提示内存已满
猜你喜欢
随机推荐
JS also exports Excel
九章云极DataCanvas公司蝉联中国机器学习平台市场TOP 3
Comparison between thread and runnable in creating threads
PLC模拟量输出 模拟量输出FB analog2NDA(三菱FX3U)
01 machine learning related regulations
Depth first traversal template principle of tree and graph
《四》表单
R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
How to choose an offer and what factors should be considered
5G VoNR+之IMS Data Channel概念
[digital analog] source code of MATLAB allcycles() function (not available before 2021a)
Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!
Canteen user dish relationship system (C language course design)
九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
Ansible概述和模块解释(你刚走过了今天,而扑面而来的却是昨天)
使用知云阅读器翻译统计遗传学书籍
STM32F103实现IAP在线升级应用程序
STM32F103ZE+SHT30检测环境温度与湿度(IIC模拟时序)
动态生成表格
JS input and output