Unreal4 Architecture

来源:互联网 发布:金科信物流软件 编辑:程序博客网 时间:2024/05/29 16:59


When programming gameplay elements using C++ code, each module can contain many C++ classes.

ProjectModuleClassOrg.png

Each class defines a template for a new Actor or Object. Within the class header file, the class and any class functions and properties are declared. Classes can also contain structs, data structures that help with organization and manipulation of related properties. Structures can also be defined on their own. interface allow additional gameplay behavior to be implemented by different classes.

When programming with Unreal Engine, it is possible to have standard C++ classes, functions, and variables. These can be defined using standard C++ syntax. However, UCLASS()UFUNCTION(), and UPROPERTY() macros can be used to make Unreal Engine aware of the new classes, functions, and variables. For instance, a variable with a declaration prefaced by a UPROPERTY() macro can be garbage collected by the engine, and can be displayed and edited within Unreal Editor. There are also UINTERFACE() and USTRUCT() macros, and keywords for each macro that can be used to specify the class's, function's, property's, interface's, or struct's behavior within Unreal Engine and Unreal Editor.

Gameplay Programming Reference Directory

When programming gameplay elements using C++ code, each module can contain many C++ classes.

ProjectModuleClassOrg.png

Each class defines a template for a new Actor or Object. Within the class header file, the class and any class functions and properties are declared. Classes can also contain structs, data structures that help with organization and manipulation of related properties. Structures can also be defined on their own. interface allow additional gameplay behavior to be implemented by different classes.

When programming with Unreal Engine, it is possible to have standard C++ classes, functions, and variables. These can be defined using standard C++ syntax. However, UCLASS()UFUNCTION(), and UPROPERTY() macros can be used to make Unreal Engine aware of the new classes, functions, and variables. For instance, a variable with a declaration prefaced by a UPROPERTY() macro can be garbage collected by the engine, and can be displayed and edited within Unreal Editor. There are also UINTERFACE() and USTRUCT() macros, and keywords for each macro that can be used to specify the class's, function's, property's, interface's, or struct's behavior within Unreal Engine and Unreal Editor.

Gameplay Programming Reference Directory

0 0