engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
UDynamicClass类 参考

Dynamic class (can be constructed after initial startup) 更多...

#include <Class.h>

+ 类 UDynamicClass 继承关系图:

Public 成员函数

virtual UObject * CreateDefaultObject ()
 Get the default object from the class, creating it if missing, if requested or under a few other circumstances 更多...
 
virtual UObject * FindArchetype (const UClass *ArchetypeClass, const FName ArchetypeName) const override
 Finds the object that is used as the parent object when serializing properties, overridden for blueprints
 
FStructProperty * FindStructPropertyChecked (const TCHAR *PropertyName) const
 Find a struct property, called from generated code
 
virtual void PurgeClass (bool bRecompilingOnLoad) override
 Purges out the properties of this class in preparation for it to be regenerated 更多...
 
virtual void SetupObjectInitializer (FObjectInitializer &ObjectInitializer) const override
 Allows class to provide data to the object initializer that can affect how native class subobjects are created.
 
- Public 成员函数 继承自 UClass
void AddDefaultSubobject (UObject *NewSubobject, UClass *BaseClass)
 Adds a new default instance map item
 
void AddFunctionToFunctionMap (UFunction *Function, FName FuncName)
 Add a function to the function map
 
void AddNativeFunction (const ANSICHAR *InName, FNativeFuncPtr InPointer)
 Add a native function to the internal native function table 更多...
 
void AddNativeFunction (const WIDECHAR *InName, FNativeFuncPtr InPointer)
 Add a native function to the internal native function table, but with a unicode name. 更多...
 
void AssembleReferenceTokenStream (bool bForce=false)
 Assembles the token stream for realtime garbage collection by combining the per class only token stream for each class in the class hierarchy. 更多...
 
FORCEINLINE void CallAddReferencedObjects (UObject *This, FReferenceCollector &Collector) const
 Calls AddReferencedObjects static method on the specified object. 更多...
 
void ClearFunctionMapsCaches ()
 Clears the function name caches, in case things have changed
 
virtual void CreatePersistentUberGraphFrame (UObject *Obj, bool bCreateOnlyIfEmpty=false, bool bSkipSuperClass=false, UClass *OldClass=nullptr) const
 Creates memory to store temporary data
 
virtual void DeferredRegister (UClass *UClassStaticClass, const TCHAR *PackageName, const TCHAR *InName) override
 Convert a boot-strap registered class into a real one, add to uobject array, etc 更多...
 
virtual void DestroyPersistentUberGraphFrame (UObject *Obj, bool bSkipSuperClass=false) const
 Clears memory to store temporary data
 
void EmitExternalPackageReference ()
 Realtime garbage collection helper function used to emit token containing information about an external package reference.
 
void EmitFixedArrayBegin (int32 Offset, const FName &DebugName, int32 Stride, int32 Count)
 Realtime garbage collection helper function used to indicate the beginning of a fixed array. 更多...
 
void EmitFixedArrayEnd ()
 Realtime garbage collection helper function used to indicated the end of a fixed array.
 
void EmitObjectArrayReference (int32 Offset, const FName &DebugName)
 Realtime garbage collection helper function used to emit token containing information about a an array of UObject references at the passed in offset. 更多...
 
void EmitObjectReference (int32 Offset, const FName &DebugName, EGCReferenceType Kind=GCRT_Object)
 Realtime garbage collection helper function used to emit token containing information about a direct UObject reference at the passed in offset. 更多...
 
uint32 EmitStructArrayBegin (int32 Offset, const FName &DebugName, int32 Stride)
 Realtime garbage collection helper function used to indicate an array of structs at the passed in offset. 更多...
 
void EmitStructArrayEnd (uint32 SkipIndexIndex)
 Realtime garbage collection helper function used to indicate the end of an array of structs. 更多...
 
virtual UObject * FindArchetype (const UClass *ArchetypeClass, const FName ArchetypeName) const
 Finds the object that is used as the parent object when serializing properties, overridden for blueprints
 
UFunction * FindFunctionByName (FName InName, EIncludeSuperFlag::Type IncludeSuper=EIncludeSuperFlag::IncludeSuper) const
 Looks for a given function name
 
virtual void FinishDestroy () override
 Called to finish destroying the object. 更多...
 
virtual UObject * GetArchetypeForCDO () const
 Returns archetype object for CDO
 
virtual void * GetArchetypeForSparseClassData () const
 Returns archetype for sparse class data
 
virtual void GetAssetRegistryTags (TArray< FAssetRegistryTag > &OutTags) const override
 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 更多...
 
virtual UClass * GetAuthoritativeClass ()
 If there are potentially multiple versions of this class (e.g. 更多...
 
FORCEINLINE EClassFlags GetClassFlags () const
 Gets the class flags. 更多...
 
const FString GetConfigName () const
 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. 更多...
 
template<class T >
T * GetDefaultObject () const
 Get the default object from the class and cast to a particular type 更多...
 
UObject * GetDefaultObject (bool bCreateIfNeeded=true) const
 Get the default object from the class 更多...
 
FName GetDefaultObjectName () const
 Get the name of the CDO for the this class 更多...
 
virtual void GetDefaultObjectPreloadDependencies (TArray< UObject * > &OutDeps)
 Returns all objects that should be preloaded before the class default object is serialized at load time. 更多...
 
void GetDefaultObjectSubobjects (TArray< UObject * > &OutDefaultSubobjects)
 Gets all default instanced objects (often components). 更多...
 
int32 GetDefaultsCount ()
 Returns amount of memory used by default object
 
UObject * GetDefaultSubobjectByName (FName ToFind)
 Searches for the default instanced object (often a component) by name
 
virtual FString GetDesc () override
 Return a one line description of an object for viewing in the thumbnail view of the generic browser
 
void * GetOrCreateSparseClassData ()
 Returns a pointer to the sidecar data structure. 更多...
 
virtual uint8 * GetPersistentUberGraphFrame (UObject *Obj, UFunction *FuncToCheck) const
 Returns memory used to store temporary data on an instance, used by blueprints
 
virtual const TCHAR * GetPrefixCPP () const override
 Returns the struct/ class prefix used for the C++ declaration of this struct/ class. 更多...
 
virtual FRestoreForUObjectOverwrite * GetRestoreForUObjectOverwrite () override
 Save information for StaticAllocateObject in the case of overwriting an existing object. 更多...
 
UScriptStruct * GetSparseClassDataArchetypeStruct () const
 Returns the struct used by the sparse class data archetype
 
virtual UScriptStruct * GetSparseClassDataStruct () const
 Returns a pointer to the type of the sidecar data structure if one is specified.
 
UClass * GetSuperClass () const
 Returns parent class, the parent of a Class is always another class
 
FORCEINLINE bool HasAllClassFlags (EClassFlags FlagsToCheck) const
 Used to safely check whether all of the passed in flags are set. 更多...
 
FORCEINLINE bool HasAnyCastFlag (EClassCastFlags FlagToCheck) const
 Used to safely check whether the passed in flag is set. 更多...
 
FORCEINLINE bool HasAnyClassFlags (EClassFlags FlagsToCheck) const
 Used to safely check whether the passed in flag is set. 更多...
 
virtual bool HasProperty (FProperty *InProperty) const
 Checks if the property exists on this class or a parent class. 更多...
 
bool ImplementsInterface (const class UClass *SomeInterface) const
 This will return whether or not this class implements the passed in class / interface 更多...
 
virtual void InitPropertiesFromCustomList (uint8 *DataPtr, const uint8 *DefaultDataPtr)
 Helper method to assist with initializing object properties from an explicit list. 更多...
 
virtual bool IsAsset () const override
 Returns true if this object is considered an asset.
 
virtual bool IsFunctionImplementedInScript (FName InFunctionName) const
 Determines if the specified function has been implemented in a Blueprint 更多...
 
virtual bool IsNameStableForNetworking () const override
 IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
 
virtual bool IsStructTrashed () const override
 If true, this class has been cleaned and sanitized (trashed) and should not be used
 
virtual void Link (FArchive &Ar, bool bRelinkExistingProperties) override
 Creates the field/property links and gets structure ready for use at runtime
 
virtual void PostInitInstance (UObject *InObj)
 Called after PostInitProperties during object construction to allow class specific initialization of an object instance.
 
virtual void PostInitProperties () override
 Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PostLoadDefaultObject (UObject *Object)
 Wraps the PostLoad() call for the class default object. 更多...
 
virtual void PurgeClass (bool bRecompilingOnLoad)
 Purges out the properties of this class in preparation for it to be regenerated 更多...
 
void RemoveFunctionFromFunctionMap (UFunction *Function)
 Remove a function from the function map
 
virtual bool Rename (const TCHAR *NewName=nullptr, UObject *NewOuter=nullptr, ERenameFlags Flags=REN_None) override
 Rename this object to a unique name, or change its outer. 更多...
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
virtual void SerializeDefaultObject (UObject *Object, FArchive &Ar) final
 serializes the passed in object as this class's default object using the given archive 更多...
 
virtual void SerializeDefaultObject (UObject *Object, FStructuredArchive::FSlot Slot)
 serializes the passed in object as this class's default object using the given archive slot 更多...
 
void SerializeSparseClassData (FStructuredArchive::FSlot Slot)
 serializes the associated sparse class data for the passed in object using the given archive slot. 更多...
 
void SetCppTypeInfoStatic (const FCppClassTypeInfoStatic *InCppTypeInfoStatic)
 Sets C++ type information. 更多...
 
virtual void SetSuperStruct (UStruct *NewSuperStruct) override
 Sets the super struct pointer and updates hash information as necessary. 更多...
 
virtual void SetupObjectInitializer (FObjectInitializer &ObjectInitializer) const
 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. 更多...
 
virtual void TagSubobjects (EObjectFlags NewFlags) override
 Tags objects that are part of the same asset with the specified object flag, used for GC checking 更多...
 
- Public 成员函数 继承自 UStruct
void CollectBytecodeAndPropertyReferencedObjects ()
 Collects UObjects referenced by bytecode and properties for faster GC access
 
void CollectBytecodeReferencedObjects (TArray< UObject * > &OutReferencedObjects)
 Collects UObjects referenced by bytecode 更多...
 
void CollectPropertyReferencedObjects (TArray< UObject * > &OutReferencedObjects)
 Collects UObjects referenced by properties 更多...
 
virtual FProperty * CustomFindProperty (const FName InName) const
 Look up a property by an alternate name if it was not found in the first search, this is overridden for user structs
 
FORCEINLINE void DeleteUnresolvedScriptProperties ()
 Deletes the UnresolvedScriptProperties array
 
void DestroyChildPropertiesAndResetPropertyLinks ()
 Destroys all properties owned by this struct
 
virtual void DestroyStruct (void *Dest, int32 ArrayDim=1) const
 Destroy a struct in memory. 更多...
 
FProperty * FindPropertyByName (FName InName) const
 Searches property link chain for a property with the specified name
 
virtual void FinishDestroy () override
 Called to finish destroying the object. 更多...
 
virtual FString GetAuthoredNameForField (const FField *Field) const
 Returns a human readable string for a given field, overridden for user defined structs
 
virtual FString GetAuthoredNameForField (const UField *Field) const
 Returns a human readable string for a given field, overridden for user defined structs
 
virtual UStruct * GetInheritanceSuper () const
 Returns the structure used for inheritance, may be changed by child types
 
FORCEINLINE int32 GetMinAlignment () const
 Alignment of structure in memory, structure will be at least this large
 
virtual const TCHAR * GetPrefixCPP () const
 Returns the struct/ class prefix used for the C++ declaration of this struct/ class. 更多...
 
virtual void GetPreloadDependencies (TArray< UObject * > &OutDeps) override
 Called during cooking. 更多...
 
FORCEINLINE int32 GetPropertiesSize () const
 Total size of all UProperties, the allocated structure may be larger due to alignment
 
FORCEINLINE int32 GetStructureSize () const
 Returns actual allocated size of structure in memory
 
UStruct * GetSuperStruct () const
 Struct this inherits from, may be null
 
virtual void InitializeStruct (void *Dest, int32 ArrayDim=1) const
 Initialize a struct over uninitialized memory. 更多...
 
void InstanceSubobjectTemplates (void *Data, void const *DefaultData, UStruct *DefaultStruct, UObject *Owner, FObjectInstancingGraph *InstanceGraph)
 Creates new copies of components 更多...
 
template<class T >
bool IsChildOf () const
 Returns true if this struct either is class T, or is a child of class T. 更多...
 
bool IsChildOf (const UStruct *SomeBase) const
 Returns true if this struct either is SomeBase, or is a child of SomeBase. 更多...
 
virtual bool IsStructTrashed () const
 If true, this class has been cleaned and sanitized (trashed) and should not be used
 
virtual void Link (FArchive &Ar, bool bRelinkExistingProperties)
 Creates the field/property links and gets structure ready for use at runtime
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void RegisterDependencies () override
 Force any base classes to be registered first
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
virtual void SerializeBin (FArchive &Ar, void *Data) const final
 Serializes struct properties, does not handle defaults
 
virtual void SerializeBin (FStructuredArchive::FSlot Slot, void *Data) const
 Serializes struct properties, does not handle defaults
 
void SerializeBinEx (FStructuredArchive::FSlot Slot, void *Data, void const *DefaultData, UStruct *DefaultStruct) const
 Serializes the class properties that reside in Data if they differ from the corresponding values in DefaultData 更多...
 
virtual EExprToken SerializeExpr (int32 &iCode, FArchive &Ar)
 Serialize an expression to an archive. 更多...
 
virtual void SerializeTaggedProperties (FArchive &Ar, uint8 *Data, UStruct *DefaultsStruct, uint8 *Defaults, const UObject *BreakRecursionIfFullyLoad=nullptr) const final
 Serializes list of properties, using property tags to handle mismatches
 
virtual void SerializeTaggedProperties (FStructuredArchive::FSlot Slot, uint8 *Data, UStruct *DefaultsStruct, uint8 *Defaults, const UObject *BreakRecursionIfFullyLoad=nullptr) const
 Serializes list of properties, using property tags to handle mismatches
 
void SetPropertiesSize (int32 NewSize)
 Modifies the property size after it's been recomputed
 
virtual void SetSuperStruct (UStruct *NewSuperStruct)
 Sets the super struct pointer and updates hash information as necessary. 更多...
 
void SetUnresolvedScriptProperties (FUnresolvedScriptPropertiesArray &InUnresolvedProperties)
 Sets the UnresolvedScriptProperties array
 
void StaticLink (bool bRelinkExistingProperties=false)
 Static wrapper for Link, using a dummy archive
 
virtual void TagSubobjects (EObjectFlags NewFlags) override
 Tags objects that are part of the same asset with the specified object flag, used for GC checking 更多...
 

静态 Public 成员函数

static const FString & GetTempPackagePrefix ()
 Prefix for the temporary package where the dynamic classes are stored when being generated
 
- 静态 Public 成员函数 继承自 UClass
static void AssembleReferenceTokenStreams ()
 Assemble reference token streams for all classes if they haven't had it assembled already
 
static UClass * FindCommonBase (const TArray< UClass * > &InClasses)
 Finds the common base class that parents the array of classes passed in. 更多...
 
static UClass * FindCommonBase (UClass *InClassA, UClass *InClassB)
 Finds the common base class that parents the two classes passed in. 更多...
 
static class FFeedbackContext & GetDefaultPropertiesFeedbackContext ()
 Feedback context for default property import
 
static bool IsSafeToSerializeToStructuredArchives (UClass *InClass)
 Helper function for determining if the given class is compatible with structured archive serialization
 

Public 属性

UObject * AnimClassImplementation
 IAnimClassInterface (UAnimClassData) or null
 
TArray< TPair< FName, UClass * > > ComponentClassOverrides
 Array of blueprint overrides of component classes in parent classes
 
TArray< UObject * > DynamicBindingObjects
 Specialized sub-object containers
 
TArray< UObject * > MiscConvertedSubobjects
 Misc objects owned by the class.
 
TArray< UField * > ReferencedConvertedFields
 Additional converted fields, that are used by the class.
 
TArray< UObject * > UsedAssets
 Outer assets used by the class
 
- Public 属性 继承自 UClass
uint32 bCooked:1
 Used to check if the class was cooked or not
 
ClassAddReferencedObjectsType ClassAddReferencedObjects
 Pointer to a static AddReferencedObjects method.
 
EClassCastFlags ClassCastFlags
 Cast flags used to accelerate dynamic_cast<T*> on objects of this type for common T
 
FName ClassConfigName
 Which Name.ini file to load Config variables out of
 
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
 
TArray< FRepRecord > ClassReps
 List of replication records
 
uint32 ClassUnique:31
 Class pseudo-unique counter; used to accelerate unique instance name generation
 
UClass * ClassWithin
 The required type for the outer of instances of this class
 
int32 FirstOwnedClassRep = 0
 Index of the first ClassRep that belongs to this class. 更多...
 
TArray< FImplementedInterface > 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. 更多...
 
TArray< FNativeFunctionLookup > NativeFunctionLookupTable
 This class's native functions.
 
TArray< UField * > NetFields
 List of network relevant fields (functions)
 
FGCReferenceTokenStream ReferenceTokenStream
 Reference token stream used by realtime garbage collector, finalized in AssembleReferenceTokenStream
 
FCriticalSection ReferenceTokenStreamCritical
 CS for the token stream. 更多...
 
- Public 属性 继承自 UStruct
FField * ChildProperties
 Pointer to start of linked list of child fields
 
UField * Children
 Pointer to start of linked list of child fields
 
FProperty * DestructorLink
 In memory only: Linked list of properties requiring destruction. 更多...
 
int32 MinAlignment
 Alignment of structure in memory, structure will be at least this large
 
FProperty * PostConstructLink
 In memory only: Linked list of properties requiring post constructor initialization
 
int32 PropertiesSize
 Total size of all UProperties, the allocated structure may be larger due to alignment
 
FProperty * PropertyLink
 In memory only: Linked list of properties from most-derived to base
 
FProperty * RefLink
 In memory only: Linked list of object reference properties from most-derived to base
 
TArray< uint8 > Script
 Script bytecode associated with this object
 
TArray< UObject * > ScriptAndPropertyObjectReferences
 Array of object references embedded in script code and referenced by FProperties. 更多...
 
FUnresolvedScriptPropertiesArray * UnresolvedScriptProperties
 Contains a list of script properties that couldn't be resolved at load time
 
const struct FUnversionedStructSchema * UnversionedSchema = nullptr
 Cached schema for optimized unversioned property serialization, owned by this.
 

额外继承的成员函数

virtual UObject * CreateDefaultObject ()
 Get the default object from the class, creating it if missing, if requested or under a few other circumstances 更多...
 
- Protected 成员函数 继承自 UStruct
virtual bool ArePropertyGuidsAvailable () const
 Returns if we have access to property guids
 
virtual FGuid FindPropertyGuidFromName (const FName InName) const
 Find property guid
 
virtual FName FindPropertyNameFromGuid (const FGuid &PropertyGuid) const
 Returns the property name from the guid
 
void LoadTaggedPropertiesFromText (FStructuredArchive::FSlot Slot, uint8 *Data, UStruct *DefaultsStruct, uint8 *Defaults, const UObject *BreakRecursionIfFullyLoad) const
 Serializes list of properties to a te, using property tags to handle mismatches
 
void SerializeProperties (FArchive &Ar)
 Serializes properties of this struct
 
- Protected 属性 继承自 UClass
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.
 

详细描述

Dynamic class (can be constructed after initial startup)

成员函数说明

◆ CreateDefaultObject()

virtual UObject * UDynamicClass::CreateDefaultObject ( )
virtual

Get the default object from the class, creating it if missing, if requested or under a few other circumstances

返回
the CDO for this class

重载 UClass .

◆ PurgeClass()

virtual void UDynamicClass::PurgeClass ( bool  bRecompilingOnLoad)
overridevirtual

Purges out the properties of this class in preparation for it to be regenerated

参数
bRecompilingOnLoad- true if we are recompiling on load

In editor, properties are not freed until DestroyPropertiesPendingDestruction is called.

重载 UClass .


该类的文档由以下文件生成: