Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h |
Include |
#include "UObject/Object.h" |
class UObject : public UObjectBaseUtility
The base class of all UE4 objects. The type of an object is defined by its UClass. This provides support functions for creating and using objects, and virtual functions that should be overridden in child classes.
Name | Description | |
---|---|---|
|
UObject() |
Default constructor |
|
UObject ( |
Deprecated constructor, ObjectInitializer is no longer needed but is supported for older classes. |
|
UObject ( |
DO NOT USE. This constructor is for internal usage only for hot-reload purposes. |
|
UObject ( |
DO NOT USE. This constructor is for internal usage only for statically-created objects. |
Name | Description | ||
---|---|---|---|
|
__DefaultConstructor ( |
||
|
UObject *... |
__VTableCtorCaller ( |
|
|
AbortInsideMemberFunction() |
Abort with a member function call at the top of the callstack, helping to ensure that most platforms will stuff this object's memory into the resulting minidump. |
|
|
AddReferencedObjects ( |
Callback used to allow object register its direct object references that are not already covered by the token stream. |
|
|
AreNativePropertiesIdenticalTo ( |
Returns whether native properties are identical to the one of the passed in component. |
|
|
BeginCacheForCookedPlatformData ( |
Starts caching of platform specific data for the target platform Called when cooking before serialization so that object can prepare platform specific data Not called during normal loading of objects |
|
|
BeginDestroy() |
Called before destroying the object. |
|
|
BuildSubobjectMapping |
Given OtherObject (which will be the same type as 'this'), recursively find any matching sub-objects from 'this' that also exist within OtherObject, and add the mappings to ObjectMapping. |
|
|
CallAddReferencedObjects ( |
Helper function to call AddReferencedObjects for this object's class. |
|
|
CallFunction |
Internal VM method for executing a function |
|
|
CallFunctionByNameWithArguments ( |
Handle calling a function by name when executed from the console or a command line |
|
|
CallRemoteFunction ( |
Call the actor's function remotely |
|
|
CanCheckDefaultSubObjects |
Checks it's ok to perform subobjects check at this time. |
|
|
CanCreateInCurrentContext ( |
Determines if you can create an object from the supplied template in the current context (editor, client only, dedicated server, game/listen) This calls NeedsLoadForClient & NeedsLoadForServer |
|
|
CanEditChange ( |
Called by the editor to query whether a property of this object is allowed to be modified. |
|
|
CanModify() |
Utility to allow overrides of Modify to avoid doing work if this object cannot be safely modified |
|
|
CheckDefaultSubobjects ( |
Checks default sub-object assumptions. |
|
|
CheckDefaultSubobjectsInternal() |
Checks default sub-object assumptions. |
|
|
ClearAllCachedCookedPlatformData() |
Clear all cached cooked platform data |
|
|
ClearCachedCookedPlatformData ( |
Clears cached cooked platform data for specific platform |
|
|
CollectDefaultSubobjects |
Uses the TArchiveObjectReferenceCollector to build a list of all components referenced by this object which have this object as the outer |
|
|
ConditionalBeginDestroy() |
Called before destroying the object. |
|
|
ConditionalFinishDestroy() |
Called when an object is actually destroyed, memory should never be accessed again |
|
|
ConditionalPostLoad() |
PostLoad if needed. |
|
|
ConditionalPostLoadSubobjects ( |
Instances subobjects and components for objects being loaded from disk, if necessary. |
|
|
CookAdditionalFiles ( |
Called during cook to allow objects to generate additional cooked files alongside their cooked package. |
|
|
TSharedPtr< ... |
CreateAndRestoreTransactionAnnotation ( |
Create and restore a previously serialized annotation object with any external data required for applying a transaction |
|
UObject *... |
CreateDefaultSubobject |
Utility function for templates below |
|
TReturnType ... |
CreateDefaultSubobject |
Create a component or subobject, allows creating a child class and returning the parent class. |
|
TReturnType ... |
CreateDefaultSubobject |
Create a component or subobject. |
|
TReturnType ... |
CreateEditorOnlyDefaultSubobject |
Create a component or subobject only to be used with the editor. |
|
TReturnType ... |
CreateOptionalDefaultSubobject |
Create an optional component or subobject. |
|
DestroyNonNativeProperties() |
Destroy properties that won't be destroyed by the native destructor |
|
|
ExecuteUbergraph ( |
Execute the ubergraph from a specific entry point |
|
|
ExportCustomProperties ( |
Exports the property values for the specified object as text to the output device. |
|
|
TSharedPtr< ... |
FactoryTransactionAnnotation ( |
|
|
UFunction &#... |
FindFunction ( |
Returns a UFunction with the specified name, wrapper for UClass::FindFunctionByName() |
|
UFunction &#... |
FindFunctionChecked ( |
Version of FindFunction() that will assert if the function was not found |
|
TSharedPtr< ... |
FindOrCreateTransactionAnnotation() |
Find or create and populate an annotation object with any external data required for applying a transaction |
|
FinishDestroy() |
Called to finish destroying the object. |
|
|
UObject *... |
GetArchetype() |
Return the template this object is based on. |
|
UObject *... |
GetArchetypeFromRequiredInfo ( |
Return the template that an object with this class, outer and name would be |
|
GetArchetypeInstances |
Builds a list of objects which have this object in their archetype chain. |
|
|
GetAssetRegistryTagMetadata ( |
Gathers a collection of asset registry tag metadata |
|
|
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 |
|
|
const TCHAR ... |
GetConfigOverridePlatform() |
Returns the override config hierarchy platform (if NDAd platforms need defaults to not be in Base*.ini but still want editor to load them) |
|
GetDefaultConfigFilename() |
Get the default config filename for the specified UObject |
|
|
UObject *... |
GetDefaultSubobjectByName ( |
Finds a subobject associated with this object instance by its name |
|
GetDefaultSubobjects |
Gets all default subobjects associated with this object instance. |
|
|
GetDesc() |
Return a one line description of an object for viewing in the thumbnail view of the generic browser |
|
|
GetDetailedInfo() |
This will return detail info about this specific object. |
|
|
GetDetailedInfoInternal() |
This function actually does the work for the GetDetailedInfo() and is virtual. |
|
|
GetExporterName() |
Returns the name of the exporter factory used to export this object Used when multiple factories have the same extension |
|
|
GetFunctionCallspace |
Return the space this function should be called. |
|
|
GetGlobalUserConfigFilename() |
Get the global user override config filename for the specified UObject |
|
|
GetLifetimeReplicatedProps ( |
Returns properties that are replicated for the lifetime of the actor channel |
|
|
GetMetaDataTagsForAssetRegistry() |
The metadata tags to be transferred from the UMetaData to the Asset Registry |
|
|
GetNativePropertyValues |
Callback for retrieving a textual representation of natively serialized properties. |
|
|
GetPreloadDependencies |
Called during cooking. |
|
|
GetPrestreamPackages |
Called during cooking. |
|
|
FPrimaryAsse... |
GetPrimaryAssetId() |
Returns an Type:Name pair representing the PrimaryAssetId for this object. |
|
GetResourceSizeBytes ( |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the simple version which just returns the total number of bytes used by this object. |
|
|
GetResourceSizeEx ( |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). |
|
|
FRestoreForU... |
GetRestoreForUObjectOverwrite() |
Save information for StaticAllocateObject in the case of overwriting an existing object. |
|
UScriptStruc... |
GetSparseClassDataStruct() |
Return the UStruct corresponding to the sidecar data structure that stores data that is constant for all instances of this class. |
|
GetSubobjectsWithStableNamesForNetworking |
Returns a list of sub-objects that have stable names for networking |
|
|
Implements() |
Returns true if this object implements the interface T, false otherwise. |
|
|
ImportCustomProperties ( |
Exports the property values for the specified object as text to the output device. |
|
|
InstanceSubobjectTemplates ( |
Wrapper for calling UClass::InstanceSubobjectTemplates() for this object. |
|
|
IsAsset() |
Returns true if this object is considered an asset. |
|
|
IsBasedOnArchetype ( |
Determine if this object has SomeObject in its archetype chain. |
|
|
IsCachedCookedPlatformDataLoaded ( |
Have we finished loading all the cooked platform data for the target platforms requested in BeginCacheForCookedPlatformData |
|
|
EDataValidat... |
IsDataValid |
|
|
IsDestructionThreadSafe() |
Called during garbage collection to determine if an object can have its destructor called on a worker thread. |
|
|
IsEditorOnly() |
Called during saving to determine if the object is forced to be editor only or not |
|
|
IsFullNameStableForNetworking() |
IsFullNameStableForNetworking means an object can be referred to its full path name over the network |
|
|
IsInBlueprint() |
Returns whether this object is contained in or part of a blueprint object |
|
|
IsLocalizedResource() |
Returns true if this object is considered a localized resource. |
|
|
IsNameStableForNetworking() |
IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network |
|
|
IsPostLoadThreadSafe() |
Called during async load to determine if PostLoad can be called on the loading thread. |
|
|
IsReadyForAsyncPostLoad() |
Called before calling PostLoad() in FAsyncPackage::PostLoadObjects(). |
|
|
IsReadyForFinishDestroy() |
Called to check if the object is ready for FinishDestroy. |
|
|
IsSafeForRootSet() |
Returns true if this object is safe to add to the root set. |
|
|
IsSelected() |
Test the selection state of a UObject |
|
|
IsSupportedForNetworking() |
IsSupportedForNetworking means an object can be referenced over the network |
|
|
LoadConfig |
Imports property values from an .ini file. |
|
|
LoadedFromAnotherClass ( |
Called when the object was loaded from another class via active class redirects. |
|
|
MarkAsEditorOnlySubobject() |
Called during subobject creation to mark this component as editor only, which causes it to get stripped in packaged builds |
|
|
Modify ( |
Note that the object will be modified. |
|
|
MoveDataToSparseClassDataStruct() |
||
|
NeedsLoadForClient() |
Called during saving to determine the load flags to save with the object. |
|
|
NeedsLoadForEditorGame() |
Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. |
|
|
NeedsLoadForServer() |
Called during saving to determine the load flags to save with the object. |
|
|
NeedsLoadForTargetPlatform ( |
Called during saving to determine the load flags to save with the object. |
|
|
OutputReferencers ( |
Outputs a string to an arbitrary output device, describing the list of objects which are holding references to this one. |
|
|
OverridePerObjectConfigSection ( |
Allows PerObjectConfig classes, to override the ini section name used for the PerObjectConfig object. |
|
|
ParseParms ( |
Import an object from a file. |
|
|
PostCDOContruct() |
Called after the C++ constructor has run on the CDO for a class. |
|
|
PostDuplicate ( |
||
|
PostDuplicate ( |
Called after duplication & serialization and before PostLoad. |
|
|
PostEditChange() |
Intentionally non-virtual as it calls the FPropertyChangedEvent version |
|
|
PostEditChangeChainProperty ( |
This alternate version of PostEditChange is called when properties inside structs are modified. |
|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostEditImport() |
Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization |
|
|
PostEditUndo() |
Called after applying a transaction to the object. |
|
|
PostEditUndo |
Called after applying a transaction to the object in cases where transaction annotation was provided. |
|
|
PostInitProperties() |
Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
|
|
PostInterpChange ( |
This is called when property is modified by InterpPropertyTracks |
|
|
PostLinkerChange() |
Called in response to the linker changing, this can only happen in the editor |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
|
PostLoadSubobjects ( |
Instances components for objects being loaded from disk, if necessary. |
|
|
PostNetReceive() |
Called right after receiving a bunch |
|
|
PostReloadConfig ( |
Called from ReloadConfig after the object has reloaded its configuration data. |
|
|
PostRename |
Called at the end of Rename(), but only if the rename was actually carried out |
|
|
PostRepNotifies() |
Called right after calling all OnRep notifies (called even when there are no notifies) |
|
|
PostSaveRoot ( |
Called from within SavePackage on the passed in base/root object. |
|
|
PostTransacted ( |
Called after the object has been transacted in some way. |
|
|
PreDestroyFromReplication() |
Called right before being marked for destruction due to network replication |
|
|
PreEditChange ( |
This alternate version of PreEditChange is called when properties inside structs are modified. |
|
|
PreEditChange ( |
This is called when a property is about to be modified externally |
|
|
PreEditUndo() |
Called before applying a transaction to the object. |
|
|
PreNetReceive() |
Called right before receiving a bunch |
|
|
PreSave ( |
Presave function. |
|
|
PreSaveRoot ( |
Called from within SavePackage on the passed in base/root object. |
|
|
ProcessConsoleExec ( |
This function handles a console exec sent to the object; it is virtual so 'nexus' objects like a player controller can reroute the command to several different objects. |
|
|
ProcessEvent |
Called by VM to execute a UFunction with a filled in UStruct of parameters |
|
|
ProcessInternal |
Internal function call processing. |
|
|
PropagatePostEditChange ( |
Calls PostEditChange on all instances based on an archetype in AffectedObjects. |
|
|
PropagatePreEditChange ( |
Calls PreEditChange on all instances based on an archetype in AffectedObjects. |
|
|
UClass * |
RegenerateClass |
Called on the target when a class is loaded with ClassGeneratedBy is loaded. |
|
ReinitializeProperties ( |
Wrapper function for InitProperties() which handles safely tearing down this object before re-initializing it from the specified source object. |
|
|
ReloadConfig |
Wrapper method for LoadConfig that is used when reloading the config data for objects at runtime which have already loaded their config data at least once. |
|
|
Rename ( |
Rename this object to a unique name, or change its outer. |
|
|
RetrieveReferencers ( |
Called by OutputReferencers() to get the internal list of referencers to write |
|
|
SaveConfig ( |
Save configuration out to ini files Must be safe to call on class-default object |
|
|
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
|
|
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
|
|
SerializeScriptProperties ( |
Serializes the script property data located at Data. |
|
|
SerializeScriptProperties ( |
Serializes the script property data located at Data. |
|
|
SetLinker ( |
Changes the linker and linker index to the passed in one. |
|
|
ShutdownAfterError() |
After a critical error, perform any mission-critical cleanup, such as restoring the video mode orreleasing hardware resources. |
|
|
SkipFunction |
Advances Stack's code past the parameters to the given Function and if the function has a return value, copies the zero value for that property to the memory for the return value |
|
|
const FName ... |
SourceFileTagName() |
Get the common tag name used for all asset source file import paths |
|
UClass * |
StaticClass() |
Returns a UClass object representing this class at runtime |
|
EClassCastFl... |
StaticClassCastFlags() |
Returns the static cast flags for this class |
|
const TCHAR ... |
StaticConfigName() |
|
|
const TCHAR ... |
StaticPackage() |
Returns the package this class belongs in |
|
StaticRegisterNativesUObject() |
||
|
TagSubobjects ( |
Tags objects that are part of the same asset with the specified object flag, used for GC checking |
|
|
UpdateClassesExcludedFromDedicatedClient |
Update the list of classes that we should exclude from dedicated client builds |
|
|
UpdateClassesExcludedFromDedicatedServer |
Update the list of classes that we should exclude from dedicated server builds |
|
|
UpdateDefaultConfigFile ( |
Saves just the section(s) for this class into the default ini file for the class (with just the changes from base) |
|
|
UpdateGlobalUserConfigFile() |
Saves just the section(s) for this class into the global user ini file for the class (with just the changes from base) |
|
|
UpdateSinglePropertyInConfigFile |
Saves just the property into the global user ini file for the class (with just the changes from base) |
|
|
ValidateGeneratedRepEnums ( |
||
|
WillNeverCacheCookedPlatformDataAgain() |
All caching has finished for this object (all IsCachedCookedPlatformDataLoaded functions have finished for all platforms) |
Name | Description | ||
---|---|---|---|
|
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 |
|
---|---|---|
|
FAssetRegistryTag |
Struct used by GetAssetRegistryTags() to return tag info |
|
FAssetRegistryTagMetadata |
Additional data pertaining to asset registry tags used by the editor |
|
Object_eventExecuteUbergraph_Parms |
Wrapper struct to hold the entrypoint in the right memory address |
Name |
Description |
|
---|---|---|
|
ENetFields_Private |
|
|
ETransactionAnnotationCreationMode |
Factory a new annotation object and optionally populate it with data |
Name |
Description |
---|---|
Super |
Typedef for the base class (UObject) |
ThisClass |
Typedef for UObject. |
WithinClass |
Name |
Description |
---|---|
StaticClassFlags |
Bitwise union of EClassFlags pertaining to this class. |
Name | Description | ||
---|---|---|---|
|
CookAdditionalFiles ( |
Use the new CookAdditionalFilesOverride that provides a function to write the files |
|
|
TReturnType ... |
CreateAbstractDefaultSubobject |
CreateAbstract did not work as intended and has been deprecated in favor of CreateDefaultObject |
|
UObject *... |
CreateDefaultSubobject |
CreateDefaultSubobject no longer takes bAbstract as a parameter. |