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




边栏推荐
- Field data acquisition and edge calculation scheme of CNC machine tools
- [line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
- 【数模】Matlab allcycles()函数的源代码(2021a之前版本没有)
- 动态生成表格
- 全国气象数据/降雨量分布数据/太阳辐射数据/NPP净初级生产力数据/植被覆盖度数据
- 【數模】Matlab allcycles()函數的源代碼(2021a之前版本沒有)
- 【二叉树】二叉树寻路
- A line of R code draws the population pyramid
- 《二》标签
- Flask project uses flask socketio exception: typeerror: function() argument 1 must be code, not str
猜你喜欢

CentOS 7.9安装Oracle 21c历险记

LabVIEW在打开一个新的引用,提示内存已满

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
![[Yugong series] go teaching course 005 variables in July 2022](/img/29/2bb30443e1e418556b5e08932f75b4.png)
[Yugong series] go teaching course 005 variables in July 2022

Markdown editor

Batch normalization (Standardization) processing

A row of code r shows the table of Cox regression model

01 machine learning related regulations

sublime使用技巧

如何设计 API 接口,实现统一格式返回?
随机推荐
批量归一化(标准化)处理
Field data acquisition and edge calculation scheme of CNC machine tools
Appium practice | make the test faster, more stable and more reliable (I): slice test
Depth first traversal template principle of tree and graph
Organize five stages of actual attack and defense drill
3.基金的类型
JDBC link Oracle reference code
关于01背包个人的一些理解
What is JVM? What are the purposes of JVM tuning?
JS variable plus
Ansible中的inventory主機清單(預祝你我有數不盡的鮮花和浪漫)
A row of code r shows the table of Cox regression model
Leetcode longest public prefix
Introduction to namespace Basics
Meow, come, come: do you really know if, if else
When knative meets webassembly
app内嵌h5---iphone软键盘遮挡输入文字
Mysql database (basic)
5G VoNR+之IMS Data Channel概念
Markdown编辑器