Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
Include |
#include "UObject/Class.h" |
class UClass : public UStruct
An object class.
Name | Description | ||
---|---|---|---|
|
bool |
bCooked |
Used to check if the class was cooked or not |
|
bool |
bLayoutChanging |
Used to check if the class layout is currently changing and therefore is not ready for a CDO to be created |
|
EClassCastFlags |
ClassCastFlags |
Cast flags used to accelerate dynamic_cast |
|
ClassConfigName |
Which Name.ini file to load Config variables out of |
|
|
ClassConstructor |
||
|
UObject * |
ClassDefaultObject |
The class default object; used for delta serialization and object initialization |
|
EClassFlags |
ClassFlags |
Class flags; See EClassFlags for more information |
|
UObject * |
ClassGeneratedBy |
This is the blueprint that caused the generation of this class, or null if it is a native compiled-in class |
|
ClassReps |
List of replication records |
|
|
int32 |
ClassUnique |
Class pseudo-unique counter; used to accelerate unique instance name generation |
|
ClassVTableHelperCtorCaller |
||
|
UClass * |
ClassWithin |
The required type for the outer of instances of this class |
|
CppClassStaticFunctions |
||
|
int32 |
FirstOwnedClassRep |
Index of the first ClassRep that belongs to this class. |
|
Interfaces |
The list of interfaces which this class implements, along with the pointer property that is located at the offset of the interface's vtable. |
|
|
NativeFunctionLookupTable |
This class's native functions. |
|
|
NetFields |
List of network relevant fields (functions) |
|
|
FField * |
PropertiesPendingDestruction |
Linked list of properties to be destroyed when this class is destroyed that couldn't be destroyed in PurgeClass |
|
ReferenceTokens |
Reference token stream used by realtime garbage collector, finalized in AssembleReferenceTokenStream |
|
|
void * |
SparseClassData |
This is where we store the data that is only changed per class instead of per instance |
|
UScriptStruct &... |
SparseClassDataStruct |
The struct used to store sparse class data. |
Name | Description | |
---|---|---|
|
UClass ( |
DO NOT USE. This constructor is for internal usage only for hot-reload purposes. |
|
UClass ( |
Constructors. |
|
UClass ( |
Create a new UClass given its superclass. |
|
UClass ( |
Called when statically linked. |
Name | Description | ||
---|---|---|---|
|
void |
__DefaultConstructor ( |
|
|
UObject *... |
__VTableCtorCaller ( |
|
|
void |
AddDefaultSubobject |
Adds a new default instance map item |
|
void |
AddFunctionToFunctionMap |
Add a function to the function map |
|
void |
AddNativeFunction ( |
Add a native function to the internal native function table, but with a unicode name. |
|
void |
AddNativeFunction ( |
Add a native function to the internal native function table |
|
void |
AddReferencedObjects ( |
Callback used to allow an object to register its direct object references that are not already covered by the token stream. |
|
void |
AssembleReferenceTokenStream ( |
Assembles the token stream for realtime garbage collection by combining the per class only token stream for each class in the class hierarchy. |
|
void |
AssembleReferenceTokenStreams() |
Assemble reference token streams for all classes if they haven't had it assembled already |
|
void |
CallAddReferencedObjects ( |
Calls AddReferencedObjects static method on the specified object. |
|
void |
CallAppendToClassSchema ( |
Calls the c++ class's AppendToClassSchema static function |
|
void |
CallDeclareConstructClasses ( |
Calls the c++ class's DeclareConstructClasses static function (from the nearest native parent if this is not native) |
|
void |
CallDeclareCustomVersions ( |
Calls the c++ class's DeclareCustomVersions static function (from the nearest native parent if this is not native) |
|
bool |
CanCreateAssetOfClass() |
Some classes may not support creating assets of their type |
|
void |
CleanupSparseClassData() |
|
|
void |
ClearFunctionMapsCaches() |
Clears the function name caches, in case things have changed |
|
void |
ClearSparseClassDataStruct ( |
Clears the sparse class data struct for this and all child classes that directly reference it as a super-struct This will rename the current sparse class data struct aside into the transient package |
|
void |
ConditionalRecompileClass ( |
Conditionally recompiles the class after loading, in case any dependencies were also newly loaded |
|
ConvertFullNameToShortTypeFullName ( |
Takes a FullName (from e.g. AssetData.GetFullName or UObject.GetFullName) in either ShortTypeFullName or PathFullName form ShortTypeFullName: "ClassObjectName /PackagePath/PackageShortName.ObjectName:SubObjectName" PathFullName: "/ClassPath/ClassPackage.ClassObjectName /PackagePath/PackageShortName.ObjectName:SubObjectName" Converts it to ShortTypeFullName if not already in that format and returns it |
|
|
ConvertPathNameToShortTypeName ( |
Returns the ObjectName portion of a ClassPath name: "/Path/To.Object" is converted to "Object". |
|
|
UObject *... |
CreateDefaultObject() |
Get the default object from the class, creating it if missing, if requested or under a few other circumstances |
|
void |
CreateLinkAndAddChildFunctionsToMap ( |
|
|
void |
CreatePersistentUberGraphFrame |
Creates memory to store temporary data |
|
void * |
CreateSparseClassData() |
|
|
void |
DestroyPersistentUberGraphFrame ( |
Clears memory to store temporary data |
|
void |
DestroyPropertiesPendingDestruction() |
Destroys properties that couldn't be destroyed in PurgeClass |
|
UObject *... |
FindArchetype |
Finds the object that is used as the parent object when serializing properties, overridden for blueprints |
|
UClass * |
FindCommonBase |
Finds the common base class that parents the array of classes passed in. |
|
UClass * |
FindCommonBase |
Finds the common base class that parents the two classes passed in. |
|
UFunction &#... |
FindFunctionByName ( |
Looks for a given function name |
|
void |
FlushCompilationQueueForLevel() |
|
|
void |
GenerateFunctionList |
|
|
UObject *... |
GetArchetypeForCDO() |
Returns archetype object for CDO |
|
const void &... |
GetArchetypeForSparseClassData() |
Returns archetype for sparse class data |
|
UClass * |
GetAuthoritativeClass() |
If there are potentially multiple versions of this class (e.g. blueprint generated classes), this function will return the authoritative version, which should be used for references |
|
const UClass... |
GetAuthoritativeClass() |
|
|
void |
GetAutoCollapseCategories |
|
|
void |
GetAutoExpandCategories |
|
|
EClassFlags |
GetClassFlags() |
Gets the class flags. |
|
void |
GetClassGroupNames |
|
|
FTopLevelAss... |
GetClassPathName() |
Returns class path name as a package + class FName pair |
|
const FStrin... |
GetConfigName() |
Translates the hardcoded script config names (engine, editor, input and game) to their global pendants and otherwise uses config(myini) name to look for a game specific implementation and creates one based on the default if it doesn't exist yet. |
|
const ICppCl... |
GetCppTypeInfo() |
Provides access to C++ type info. |
|
T * |
GetDefaultObject() |
Get the default object from the class and cast to a particular type |
|
UObject *... |
GetDefaultObject ( |
Get the default object from the class |
|
GetDefaultObjectName() |
Get the name of the CDO for the this class |
|
|
void |
GetDefaultObjectPreloadDependencies |
Returns all objects that should be preloaded before the class default object is serialized at load time. |
|
void |
GetDefaultObjectSubobjects |
Gets all default instanced objects (often components). |
|
FFeedbackCon... |
GetDefaultPropertiesFeedbackContext() |
Feedback context for default property import |
|
int32 |
GetDefaultsCount() |
Returns amount of memory used by default object |
|
UObject *... |
GetDefaultSubobjectByName ( |
Searches for the default instanced object (often a component) by name |
|
GetDescription() |
||
|
void |
GetHideFunctions |
Editor only properties. |
|
void * |
GetOrCreateSparseClassData() |
Returns a pointer to the sidecar data structure. |
|
UPackage ... |
GetOuterUPackage() |
|
|
uint8 * |
GetPersistentUberGraphFrame |
Returns memory used to store temporary data on an instance, used by blueprints |
|
void |
GetPrioritizeCategories |
|
|
const void &... |
GetSparseClassData ( |
Returns a pointer to the sidecar data structure, based on the EGetSparseClassDataMethod. |
|
UScriptStruc... |
GetSparseClassDataArchetypeStruct() |
Returns the struct used by the sparse class data archetype |
|
UScriptStruc... |
GetSparseClassDataStruct() |
Returns a pointer to the type of the sidecar data structure if one is specified. |
|
UClass * |
GetSuperClass() |
Returns parent class, the parent of a Class is always another class |
|
bool |
HasAllCastFlags ( |
|
|
bool |
HasAllClassFlags ( |
Used to safely check whether all of the passed in flags are set. |
|
bool |
HasAnyCastFlag ( |
Used to safely check whether the passed in flag is set. |
|
bool |
HasAnyClassFlags ( |
Used to safely check whether the passed in flag is set. |
|
bool |
HasProperty ( |
Checks if the property exists on this class or a parent class. |
|
bool |
HotReloadPrivateStaticClass ( |
Called when a class is reloading from a DLL...updates various information in-place. |
|
bool |
ImplementsInterface ( |
This will return whether or not this class implements the passed in class / interface |
|
void |
InitPropertiesFromCustomList ( |
Helper method to assist with initializing object properties from an explicit list. |
|
bool |
IsAutoCollapseCategory ( |
|
|
bool |
IsAutoExpandCategory ( |
|
|
bool |
IsClassGroupName ( |
|
|
bool |
IsFunctionHidden ( |
|
|
bool |
IsFunctionImplementedInScript ( |
Determines if the specified function has been implemented in a Blueprint |
|
bool |
IsPrioritizeCategory ( |
|
|
bool |
IsSafeToSerializeToStructuredArchives ( |
Helper function for determining if the given class is compatible with structured archive serialization |
|
bool |
IsShortTypeName ( |
Returns whether the given stringview is in ShortTypeName form: No directory separators "/" or object separators ".", SUBOBJECT_DELIMITER Returns true for empty string. |
|
bool |
OverridesSparseClassDataArchetype() |
Returns whether the sparse class data on this instance overrides that of its archetype (in type or value) |
|
void |
PostInitInstance ( |
Called after PostInitProperties during object construction to allow class specific initialization of an object instance. |
|
void |
PostLoadDefaultObject ( |
Wraps the PostLoad() call for the class default object. |
|
void |
PostLoadInstance ( |
Called during PostLoad of an object to allow class specific PostLoad operations of an object instance. |
|
void |
PurgeClass ( |
Purges out the properties of this class in preparation for it to be regenerated |
|
void |
RemoveFunctionFromFunctionMap ( |
Remove a function from the function map |
|
bool |
ReplaceNativeFunction ( |
Replace a native function in the internal native function table |
|
void |
SerializeDefaultObject |
Serializes the passed in object as this class's default object using the given archive |
|
void |
SerializeDefaultObject ( |
Serializes the passed in object as this class's default object using the given archive slot |
|
void |
SerializeSparseClassData ( |
Serializes the associated sparse class data for the passed in object using the given archive slot. |
|
void |
SetCppTypeInfoStatic ( |
Sets C++ type information. Should not be NULL. |
|
void |
SetSparseClassDataStruct ( |
|
|
void |
SetupObjectInitializer ( |
Allows class to provide data to the object initializer that can affect how native class subobjects are created. |
|
void |
SetUpRuntimeReplicationData() |
Initializes the ClassReps and NetFields arrays used by replication. |
|
UClass * |
StaticClass() |
Returns a UClass object representing this class at runtime |
|
EClassCastFl... |
StaticClassCastFlags() |
Returns the static cast flags for this class |
|
const TCHAR ... |
StaticPackage() |
Returns the package this class belongs in |
|
void |
StaticRegisterNativesUClass() |
|
|
FTopLevelAss... |
TryConvertShortTypeNameToPathName ( |
Tries to convert short class name to class path name. |
|
FTopLevelAss... |
TryConvertShortTypeNameToPathName ( |
Tries to convert short class name to class path name. |
|
T * |
TryFindTypeSlow ( |
Utility function that tries to find a type (class/struct/enum) given a path name or a short name however it will throw a warning (with a callstack) if it's the latter. |
|
UField * |
TryFindTypeSlow |
Utility function that tries to find a type (class/struct/enum) given a path name or a short name however it will throw a warning (with a callstack) if it's the latter. |
|
T * |
TryFindTypeSlowSafe ( |
Utility function that tries to find a type (class/struct/enum) given a path name or a short name however it will throw a warning (with a callstack) if it's the latter. |
|
UField * |
TryFindTypeSlowSafe |
Utility function that tries to find a type (class/struct/enum) given a path name or a short name however it will throw a warning (with a callstack) if it's the latter. |
|
bool |
TryFixShortClassNameExportPath ( |
Tries to fix an export path containing short class name. |
Name | Description | ||
---|---|---|---|
|
const TCHAR ... |
GetPrefixCPP() |
Returns the struct/ class prefix used for the C++ declaration of this struct/ class. |
|
bool |
IsStructTrashed() |
If true, this class has been cleaned and sanitized (trashed) and should not be used |
|
void |
Link ( |
Creates the field/property links and gets structure ready for use at runtime |
|
void |
SetSuperStruct ( |
Sets the super struct pointer and updates hash information as necessary. |
Name | Description | ||
---|---|---|---|
|
void |
Bind() |
Find the class's native constructor. |
Name | Description | ||
---|---|---|---|
|
void |
FinishDestroy() |
Called to finish destroying the object. |
|
void |
GetAssetRegistryTags ( |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects |
|
GetDesc() |
Return a one line description of an object for viewing in the thumbnail view of the generic browser |
|
|
void |
GetPreloadDependencies |
Called during cooking. |
|
FRestoreForU... |
GetRestoreForUObjectOverwrite() |
Save information for StaticAllocateObject in the case of overwriting an existing object. |
|
bool |
IsAsset() |
Returns true if this object is considered an asset. |
|
bool |
IsNameStableForNetworking() |
IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network |
|
void |
PostInitProperties() |
Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
|
void |
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
void |
PostLoadAssetRegistryTags ( |
Performs fixup on loaded asset registry data. |
|
bool |
Rename ( |
Rename this object to a unique name, or change its outer. |
|
void |
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
|
void |
TagSubobjects ( |
Tags objects that are part of the same asset with the specified object flag, used for GC checking |
Name | Description | ||
---|---|---|---|
|
void |
DeferredRegister ( |
Convert a boot-strap registered class into a real one, add to uobject array, etc |
Name | Description | ||
---|---|---|---|
|
void |
operator delete ( |
Eliminate V1062 warning from PVS-Studio while keeping MSVC and Clang happy. |
|
void * |
operator new ( |
For internal use only; use StaticConstructObject() to create new objects. |
|
void * |
operator new |
For internal use only; use StaticConstructObject() to create new objects. |
Name |
Description |
---|---|
ClassConstructorType |
|
ClassVTableHelperCtorCallerType |
|
StaticClassFunctionType |
|
Super |
Typedef for the base class (UStruct) |
ThisClass |
Typedef for UClass. |
WithinClass |
The required type of this object's outer (class UPackage) |
Name |
Description |
---|---|
StaticClassFlags |
Bitwise union of EClassFlags pertaining to this class. |
Name | Description | ||
---|---|---|---|
|
bool |
IsFunctionImplementedInBlueprint ( |
IsFunctionImplementedInBlueprint is deprecated, call IsFunctionImplementedInScript instead |