当前位置:网站首页>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 :
边栏推荐
- 记录一次压测经验总结
- Mysql database (basic)
- Basic idea of counting and sorting
- Oracle -- 视图与序列
- offer如何选择该考虑哪些因素
- Introduction to namespace Basics
- 高数中值定理总结
- Jetson nano configures pytorch deep learning environment / / to be improved
- 高手勿进!写给初中级程序员以及还在大学修炼的“准程序员”的成长秘籍
- Monitoring cannot be started after Oracle modifies the computer name
猜你喜欢
装饰器基础学习02
Introduction to namespace Basics
Weebly mobile website editor mobile browsing New Era
Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!
《二》标签
U++4 接口 学习笔记
Vscode 如何使用内置浏览器?
高手勿进!写给初中级程序员以及还在大学修炼的“准程序员”的成长秘籍
Field data acquisition and edge calculation scheme of CNC machine tools
A row of code r shows the table of Cox regression model
随机推荐
高手勿进!写给初中级程序员以及还在大学修炼的“准程序员”的成长秘籍
3. Type of fund
ServiceMesh主要解决的三大痛点
AttributeError: module ‘torch._ C‘ has no attribute ‘_ cuda_ setDevice‘
npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
vector和类拷贝构造函数
记录一次压测经验总结
offer如何选择该考虑哪些因素
批量归一化(标准化)处理
What is JVM? What are the purposes of JVM tuning?
STM32封装ESP8266一键配置函数:实现实现AP模式和STA模式切换、服务器与客户端创建
PLC模拟量输出 模拟量输出FB analog2NDA(三菱FX3U)
Tiktok may launch an independent grass planting community platform: will it become the second little red book
What is Web3
关于01背包个人的一些理解
Flask project uses flask socketio exception: typeerror: function() argument 1 must be code, not str
When knative meets webassembly
【ArcGIS教程】专题图制作-人口密度分布图——人口密度分析
第一篇论文的写作流程
ClickHouse(03)ClickHouse怎么安装和部署