Gameplay Classes: Objects, Actors, and Components
There are 4 main class types that you derive from for the majority of gameplay classes.
They are UObject, AActor, UActorComponent, and UStruct.
Unreal Objects (UObject)
The base building block in the Unreal Engine is called UObject.
This class, coupled with UClass, provides a number of the most important base services in the engine:
-
Reflection of properties and methods
-
Serialization of properties
-
Garbage collection
-
Finding UObjects by name
-
Configurable values for properties
-
Networking support for properties and methods
虚幻引擎中的基本构建块称为 UObject 。这种类与 UClass(提供反射信息) 耦合,提供了引擎中最重要的基础服务: