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

A Level is a collection of Actors (lights, volumes, mesh instances etc.). 更多...

#include <Level.h>

+ 类 ULevel 继承关系图:

Public 成员函数

ENGINE_API void ApplyWorldOffset (const FVector &InWorldOffset, bool bWorldShift)
 Shift level actors by specified offset The offset vector will get subtracted from all actors positions and corresponding data structures 更多...
 
virtual void BeginDestroy () override
 Called before destroying the object. 更多...
 
void BroadcastLevelBoundsActorUpdated ()
 Broadcasts that Level bounds actor has been updated
 
virtual bool CanBeClusterRoot () const override
 Called after load to determine if the object can be a cluster root 更多...
 
ENGINE_API void CleanupLevel ()
 Flag this level instance for destruction. 更多...
 
ENGINE_API void ClearLevelComponents ()
 Clears all components of actors associated with this level (aka in Actors array) and also the BSP model components.
 
ENGINE_API void CommitModelSurfaces ()
 Commits changes made to the UModel's surfaces.
 
virtual void CreateCluster () override
 Called after PostLoad to create UObject cluster
 
void CreateReplicatedDestructionInfo (AActor *const Actor)
 Populate an entry for Actor in the DestroyedReplicatedStaticActors list
 
 DECLARE_EVENT (ULevel, FLevelBoundsActorUpdatedEvent)
 Called when Level bounds actor has been updated
 
virtual void FinishDestroy () override
 Called to finish destroying the object. 更多...
 
FLevelCollection * GetCachedLevelCollection () const
 Returns the cached collection that contains this level, if any. 更多...
 
ENGINE_API ABrush * GetDefaultBrush () const
 Returns the default brush for this level. 更多...
 
ENGINE_API class ALevelScriptActor * GetLevelScriptActor () const
 Returns the level scripting actor associated with this level 更多...
 
ENGINE_API TArray< FVector > const * GetStaticNavigableGeometry () const
 
ENGINE_API AWorldSettings * GetWorldSettings (bool bChecked=true) const
 Returns the world info for this level. 更多...
 
ENGINE_API void HandleLegacyMapBuildData ()
 Creates UMapBuildDataRegistry entries for legacy lightmaps from components loaded for this level.
 
bool HasAnyActorsOfType (UClass *SearchType)
 Utility searches this level's actor list for any actors of the specified type.
 
ENGINE_API bool HasVisibilityChangeRequestPending () const
 Whether the level is currently pending being made invisible or visible. 更多...
 
bool HasVisibilityRequestPending () const
 Whether the level is currently pending being made visible. 更多...
 
bool IncrementalUnregisterComponents (int32 NumComponentsToUnregister)
 Incrementally unregisters all components of actors associated with this level. 更多...
 
void IncrementalUpdateComponents (int32 NumComponentsToUpdate, bool bRerunConstructionScripts, FRegisterComponentContext *Context=nullptr)
 Incrementally updates all components of actors associated with this level. 更多...
 
void InitializeNetworkActors ()
 Handles network initialization for actors in this level
 
ENGINE_API void InitializeRenderingResources ()
 Initializes rendering resources for this level.
 
void InvalidateModelGeometry ()
 Invalidates the cached data used to render the level's UModel.
 
void InvalidateModelSurface ()
 Discards the cached data used to render the level's UModel. 更多...
 
ENGINE_API bool IsCurrentLevel () const
 Is this the current level in the world it is owned by
 
virtual bool IsNameStableForNetworking () const override
 IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
 
ENGINE_API bool IsPersistentLevel () const
 Is this the persistent level
 
virtual bool IsReadyForFinishDestroy () override
 Called to check if the object is ready for FinishDestroy. 更多...
 
ENGINE_API void MarkLevelBoundsDirty ()
 Marks level bounds as dirty so they will be recalculated

 
virtual void PostDuplicate (bool bDuplicateForPIE) override
 Called after duplication & serialization and before PostLoad. 更多...
 
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 PreDuplicate (FObjectDuplicationParameters &DupParams) override
 Called before duplication. 更多...
 
virtual void PreSave (const class ITargetPlatform *TargetPlatform) override
 Presave function. 更多...
 
void PushPendingAutoReceiveInput (APlayerController *PC)
 Push any pending auto receive input actor's input components on to the player controller's input stack
 
void RegisterActorForAutoReceiveInput (AActor *Actor, const int32 PlayerIndex)
 Register an actor that should be added to a player's input stack when they are created
 
ENGINE_API void ReleaseRenderingResources ()
 Releases rendering resources for this level.
 
ENGINE_API void ResetNavList ()
 Resets the level nav list.
 
void RouteActorInitialize ()
 Routes pre and post initialize to actors and also sets volumes. 更多...
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
void SetCachedLevelCollection (FLevelCollection *const InCachedLevelCollection)
 Sets the cached level collection that contains this level. 更多...
 
ENGINE_API void SetLightingScenario (bool bNewIsLightingScenario)
 Sets whether this level is a lighting scenario and handles propagating the change.
 
ENGINE_API void SortActorList ()
 Sorts the actor list by net relevancy and static behaviour. 更多...
 
 ULevel (FVTableHelper &Helper)
 DO NOT USE. 更多...
 
ENGINE_API void UpdateLevelComponents (bool bRerunConstructionScripts, FRegisterComponentContext *Context=nullptr)
 Updates all components of actors associated with this level (aka in Actors array) and creates the BSP model components. 更多...
 
ENGINE_API void UpdateModelComponents ()
 Updates the model components associated with this level
 
- Public 成员函数 继承自 UObject
void AbortInsideMemberFunction () const
 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.
 
virtual bool AreNativePropertiesIdenticalTo (UObject *Other) const
 Returns whether native properties are identical to the one of the passed in component. 更多...
 
virtual void BeginDestroy ()
 Called before destroying the object. 更多...
 
virtual void BuildSubobjectMapping (UObject *OtherObject, TMap< UObject *, UObject * > &ObjectMapping) const
 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. 更多...
 
void CallAddReferencedObjects (FReferenceCollector &Collector)
 Helper function to call AddReferencedObjects for this object's class. 更多...
 
void CallFunction (FFrame &Stack, RESULT_DECL, UFunction *Function)
 Internal VM method for executing a function
 
bool CallFunctionByNameWithArguments (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor, bool bForceCallWithNonExec=false)
 Handle calling a function by name when executed from the console or a command line
 
virtual bool CallRemoteFunction (UFunction *Function, void *Parms, struct FOutParmRec *OutParms, FFrame *Stack)
 Call the actor's function remotely 更多...
 
bool CheckDefaultSubobjects (bool bForceCheck=false) const
 Checks default sub-object assumptions. 更多...
 
void CollectDefaultSubobjects (TArray< UObject * > &OutDefaultSubobjects, bool bIncludeNestedSubobjects=false) const
 Uses the TArchiveObjectReferenceCollector to build a list of all components referenced by this object which have this object as the outer 更多...
 
bool ConditionalBeginDestroy ()
 Called before destroying the object. 更多...
 
bool ConditionalFinishDestroy ()
 Called when an object is actually destroyed, memory should never be accessed again
 
void ConditionalPostLoad ()
 PostLoad if needed.
 
void ConditionalPostLoadSubobjects (struct FObjectInstancingGraph *OuterInstanceGraph=NULL)
 Instances subobjects and components for objects being loaded from disk, if necessary. 更多...
 
 DECLARE_FUNCTION (execBreakpoint)
 Breakpoint; only observed in the editor; executing it at any other time is a NOP
 
 DECLARE_FUNCTION (execInstrumentation)
 Instrumentation event for profiling; only observed in the builds with blueprint instrumentation
 
 DECLARE_FUNCTION (execPopExecutionFlow)
 Pops a code offset from the execution flow stack and starts execution there. 更多...
 
 DECLARE_FUNCTION (execPopExecutionFlowIfNot)
 Pops a code offset from the execution flow stack and starts execution there, if a condition is not true. 更多...
 
 DECLARE_FUNCTION (execPushExecutionFlow)
 Push a code offset onto the execution flow stack for future execution. 更多...
 
 DECLARE_FUNCTION (execReturnNothing)
 failsafe for functions that return a value - returns the zero value for a property and logs that control reached the end of a non-void function
 
 DECLARE_FUNCTION (execTracepoint)
 Tracepoint; only observed in the editor; executing it at any other time is a NOP
 
 DECLARE_FUNCTION (ProcessInternal)
 Internal function call processing. 更多...
 
void DestroyNonNativeProperties ()
 Destroy properties that won't be destroyed by the native destructor
 
void ExecuteUbergraph (int32 EntryPoint)
 Execute the ubergraph from a specific entry point
 
virtual void ExportCustomProperties (FOutputDevice &Out, uint32 Indent)
 Exports the property values for the specified object as text to the output device. 更多...
 
UFunction * FindFunction (FName InName) const
 Returns a UFunction with the specified name, wrapper for UClass::FindFunctionByName()
 
UFunction * FindFunctionChecked (FName InName) const
 Version of FindFunction() that will assert if the function was not found
 
virtual void FinishDestroy ()
 Called to finish destroying the object. 更多...
 
UObject * GetArchetype () const
 Return the template this object is based on. 更多...
 
void GetArchetypeInstances (TArray< UObject * > &Instances)
 Builds a list of objects which have this object in their archetype chain. 更多...
 
virtual void GetAssetRegistryTags (TArray< FAssetRegistryTag > &OutTags) const
 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 const TCHAR * GetConfigOverridePlatform () const
 Returns the override config hierarchy platform (if NDAd platforms need defaults to not be in Base*.ini but still want editor to load them)
 
FString GetDefaultConfigFilename () const
 Get the default config filename for the specified UObject
 
virtual FString GetDesc ()
 Return a one line description of an object for viewing in the thumbnail view of the generic browser
 
FString GetDetailedInfo () const
 This will return detail info about this specific object. 更多...
 
virtual FName GetExporterName (void)
 Returns the name of the exporter factory used to export this object Used when multiple factories have the same extension
 
virtual int32 GetFunctionCallspace (UFunction *Function, FFrame *Stack)
 Return the space this function should be called. 更多...
 
FString GetGlobalUserConfigFilename () const
 Get the global user override config filename for the specified UObject
 
virtual void GetLifetimeReplicatedProps (TArray< class FLifetimeProperty > &OutLifetimeProps) const
 Returns properties that are replicated for the lifetime of the actor channel
 
virtual bool GetNativePropertyValues (TMap< FString, FString > &out_PropertyValues, uint32 ExportFlags=0) const
 Callback for retrieving a textual representation of natively serialized properties. 更多...
 
virtual int32 GetNetPushIdDynamic () const
 Should only ever be used by internal systems.
 
virtual void GetPreloadDependencies (TArray< UObject * > &OutDeps)
 Called during cooking. 更多...
 
virtual void GetPrestreamPackages (TArray< UObject * > &OutPrestream)
 Called during cooking. 更多...
 
virtual FPrimaryAssetId GetPrimaryAssetId () const
 Returns an Type:Name pair representing the PrimaryAssetId for this object. 更多...
 
FString GetProjectUserConfigFilename () const
 Get the project user override config filename for the specified UObject
 
SIZE_T GetResourceSizeBytes (EResourceSizeMode::Type Mode)
 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. 更多...
 
virtual void GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize)
 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). 更多...
 
virtual FRestoreForUObjectOverwrite * GetRestoreForUObjectOverwrite ()
 Save information for StaticAllocateObject in the case of overwriting an existing object. 更多...
 
virtual UScriptStruct * GetSparseClassDataStruct () const
 Return the UStruct corresponding to the sidecar data structure that stores data that is constant for all instances of this class.
 
virtual void GetSubobjectsWithStableNamesForNetworking (TArray< UObject * > &ObjList)
 Returns a list of sub-objects that have stable names for networking
 
template<class T >
FORCEINLINE bool Implements () const
 Returns true if this object implements the interface T, false otherwise.
 
template<class T >
bool Implements () const
 Returns true if this object implements the interface T, false otherwise.
 
virtual void ImportCustomProperties (const TCHAR *SourceText, FFeedbackContext *Warn)
 Exports the property values for the specified object as text to the output device. 更多...
 
void InstanceSubobjectTemplates (struct FObjectInstancingGraph *InstanceGraph=NULL)
 Wrapper for calling UClass::InstanceSubobjectTemplates() for this object.
 
virtual bool IsAsset () const
 Returns true if this object is considered an asset.
 
bool IsBasedOnArchetype (const UObject *const SomeObject) const
 Determine if this object has SomeObject in its archetype chain.
 
virtual bool IsDestructionThreadSafe () const
 Called during garbage collection to determine if an object can have its destructor called on a worker thread. 更多...
 
virtual bool IsEditorOnly () const
 Called during saving to determine if the object is forced to be editor only or not 更多...
 
virtual bool IsFullNameStableForNetworking () const
 IsFullNameStableForNetworking means an object can be referred to its full path name over the network
 
bool IsInBlueprint () const
 Returns whether this object is contained in or part of a blueprint object
 
virtual bool IsLocalizedResource () const
 Returns true if this object is considered a localized resource.
 
virtual bool IsNameStableForNetworking () const
 IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
 
virtual bool IsPostLoadThreadSafe () const
 Called during async load to determine if PostLoad can be called on the loading thread. 更多...
 
virtual bool IsReadyForAsyncPostLoad () const
 Called before calling PostLoad() in FAsyncPackage::PostLoadObjects(). 更多...
 
virtual bool IsReadyForFinishDestroy ()
 Called to check if the object is ready for FinishDestroy. 更多...
 
virtual bool IsSafeForRootSet () const
 Returns true if this object is safe to add to the root set.
 
bool IsSelected () const
 Test the selection state of a UObject 更多...
 
virtual bool IsSupportedForNetworking () const
 IsSupportedForNetworking means an object can be referenced over the network
 
void LoadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL)
 Imports property values from an .ini file. 更多...
 
virtual void MarkAsEditorOnlySubobject ()
 Called during subobject creation to mark this component as editor only, which causes it to get stripped in packaged builds
 
FORCEINLINE bool Modify (bool bAlwaysMarkDirty=true)
 Note that the object will be modified. 更多...
 
virtual bool NeedsLoadForClient () const
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForEditorGame () const
 Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. 更多...
 
virtual bool NeedsLoadForServer () const
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForTargetPlatform (const class ITargetPlatform *TargetPlatform) const
 Called during saving to determine the load flags to save with the object. 更多...
 
void OutputReferencers (FOutputDevice &Ar, FReferencerInformationList *Referencers=NULL)
 Outputs a string to an arbitrary output device, describing the list of objects which are holding references to this one. 更多...
 
virtual void OverridePerObjectConfigSection (FString &SectionName)
 Allows PerObjectConfig classes, to override the ini section name used for the PerObjectConfig object. 更多...
 
void ParseParms (const TCHAR *Parms)
 Import an object from a file.
 
virtual void PostCDOContruct ()
 Called after the C++ constructor has run on the CDO for a class. 更多...
 
virtual void PostDuplicate (bool bDuplicateForPIE)
 Called after duplication & serialization and before PostLoad. 更多...
 
virtual void 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
 
virtual void PostInitProperties ()
 Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
 
virtual void PostInterpChange (FProperty *PropertyThatChanged)
 This is called when property is modified by InterpPropertyTracks 更多...
 
virtual void PostLoad ()
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PostLoadSubobjects (FObjectInstancingGraph *OuterInstanceGraph)
 Instances components for objects being loaded from disk, if necessary. 更多...
 
virtual void PostNetReceive ()
 Called right after receiving a bunch
 
virtual void PostReloadConfig (class FProperty *PropertyThatWasLoaded)
 Called from ReloadConfig after the object has reloaded its configuration data.
 
virtual void PostRename (UObject *OldOuter, const FName OldName)
 Called at the end of Rename(), but only if the rename was actually carried out
 
virtual void PostRepNotifies ()
 Called right after calling all OnRep notifies (called even when there are no notifies)
 
virtual void PostSaveRoot (bool bCleanupIsRequired)
 Called from within SavePackage on the passed in base/root object. 更多...
 
virtual void PreDestroyFromReplication ()
 Called right before being marked for destruction due to network replication
 
virtual void PreDuplicate (FObjectDuplicationParameters &DupParams)
 Called before duplication. 更多...
 
virtual void PreNetReceive ()
 Called right before receiving a bunch
 
virtual void PreSave (const class ITargetPlatform *TargetPlatform)
 Presave function. 更多...
 
virtual bool PreSaveRoot (const TCHAR *Filename)
 Called from within SavePackage on the passed in base/root object. 更多...
 
virtual bool ProcessConsoleExec (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor)
 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.
 
virtual void ProcessEvent (UFunction *Function, void *Parms)
 Called by VM to execute a UFunction with a filled in UStruct of parameters
 
virtual UClass * RegenerateClass (UClass *ClassToRegenerate, UObject *PreviousCDO)
 Called on the target when a class is loaded with ClassGeneratedBy is loaded. 更多...
 
void ReinitializeProperties (UObject *SourceObject=NULL, struct FObjectInstancingGraph *InstanceGraph=NULL)
 Wrapper function for InitProperties() which handles safely tearing down this object before re-initializing it from the specified source object. 更多...
 
void ReloadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL)
 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. 更多...
 
virtual bool Rename (const TCHAR *NewName=nullptr, UObject *NewOuter=nullptr, ERenameFlags Flags=REN_None)
 Rename this object to a unique name, or change its outer. 更多...
 
void RetrieveReferencers (TArray< FReferencerInformation > *OutInternalReferencers, TArray< FReferencerInformation > *OutExternalReferencers)
 Called by OutputReferencers() to get the internal list of referencers to write
 
void SaveConfig (uint64 Flags=CPF_Config, const TCHAR *Filename=NULL, FConfigCacheIni *Config=GConfig, bool bAllowCopyToDefaultObject=true)
 Save configuration out to ini files 更多...
 
virtual void Serialize (FArchive &Ar)
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
void SerializeScriptProperties (FArchive &Ar) const
 Serializes the script property data located at Data. 更多...
 
void SerializeScriptProperties (FStructuredArchive::FSlot Slot) const
 Serializes the script property data located at Data. 更多...
 
void SetLinker (FLinkerLoad *LinkerLoad, int32 LinkerIndex, bool bShouldDetachExisting=true)
 Changes the linker and linker index to the passed in one. 更多...
 
virtual void ShutdownAfterError ()
 After a critical error, perform any mission-critical cleanup, such as restoring the video mode orreleasing hardware resources.
 
void SkipFunction (FFrame &Stack, RESULT_DECL, UFunction *Function)
 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 更多...
 
virtual void TagSubobjects (EObjectFlags NewFlags)
 Tags objects that are part of the same asset with the specified object flag, used for GC checking 更多...
 
void UpdateDefaultConfigFile (const FString &SpecificFileLocation="")
 Saves just the section(s) for this class into the default ini file for the class (with just the changes from base)
 
void UpdateGlobalUserConfigFile ()
 Saves just the section(s) for this class into the global user ini file for the class (with just the changes from base)
 
void UpdateProjectUserConfigFile ()
 Saves just the section(s) for this class into the project user ini file for the class (with just the changes from base)
 
void UpdateSinglePropertyInConfigFile (const FProperty *InProperty, const FString &InConfigIniName)
 Saves just the property into the global user ini file for the class (with just the changes from base)
 
- Public 成员函数 继承自 UObjectBaseUtility
void AddToCluster (UObjectBaseUtility *ClusterRootOrObjectFromCluster, bool bAddAsMutableObject=false)
 Adds this objects to a GC cluster that already exists 更多...
 
FORCEINLINE void AddToRoot ()
 Add an object to the root set. 更多...
 
FORCEINLINE void AppendName (FString &ResultString) const
 Optimized version of GetName that appends to an existing string
 
FORCEINLINE bool AtomicallyClearInternalFlags (EInternalObjectFlags FlagsToClear) const
 Atomically clears passed in internal flags. 更多...
 
virtual bool CanBeClusterRoot () const
 Called after load to determine if the object can be a cluster root 更多...
 
virtual bool CanBeInCluster () const
 Called during cluster construction if the object can be added to a cluster 更多...
 
FORCEINLINE void ClearFlags (EObjectFlags NewFlags)
 Clears subset of flags for a specific object
 
FORCEINLINE void ClearInternalFlags (EInternalObjectFlags FlagsToClear) const
 Clears passed in internal flags. 更多...
 
FORCEINLINE void ClearPendingKill ()
 Unmarks this object as PendingKill.
 
virtual void CreateCluster ()
 Called after PostLoad to create UObject cluster
 
void DetachExternalPackage ()
 Utility function to temporarily detach the object external package, if any GetPackage will report the outer's package once detached
 
const UClass * FindNearestCommonBaseClass (const UClass *TestClass) const
 Finds the most-derived class which is a parent of both TestClass and this object's class. 更多...
 
FORCEINLINE EObjectMark GetAllMarks () const
 Returns all of the object marks on a specific object 更多...
 
FString GetFullGroupName (bool bStartWithOuter) const
 Walks up the chain of packages until it reaches the top level, which it ignores. 更多...
 
void GetFullName (const UObject *StopOuter, FString &ResultString, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const
 Version of GetFullName() that eliminates unnecessary copies.
 
FString GetFullName (const UObject *StopOuter=NULL, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const
 Returns the fully qualified pathname for this object as well as the name of the class, in the format: 'ClassName Outermost[.Outer].Name'. 更多...
 
void * GetInterfaceAddress (UClass *InterfaceClass)
 Returns a pointer to this object safely converted to a pointer of the specified interface class. 更多...
 
FORCEINLINE EInternalObjectFlags GetInternalFlags () const
 Gets internal flags. 更多...
 
class FLinkerLoad * GetLinker () const
 Returns the linker for this object. 更多...
 
int32 GetLinkerCustomVersion (FGuid CustomVersionKey) const
 Returns the custom version of the linker for this object corresponding to the given custom version key. 更多...
 
int32 GetLinkerIndex () const
 Returns this object's LinkerIndex. 更多...
 
int32 GetLinkerLicenseeUE4Version () const
 Returns the licensee version of the linker for this object. 更多...
 
int32 GetLinkerUE4Version () const
 Returns the UE4 version of the linker for this object. 更多...
 
FORCEINLINE EObjectFlags GetMaskedFlags (EObjectFlags Mask=RF_AllFlags) const
 Returns object flags that are both in the mask and set on the object. 更多...
 
FORCEINLINE FString GetName () const
 Returns the name of this object (with no path information) 更多...
 
FORCEINLINE void GetName (FString &ResultString) const
 Optimized version of GetName that overwrites an existing string
 
void * GetNativeInterfaceAddress (UClass *InterfaceClass)
 Returns a pointer to the I* native interface object that this object implements. 更多...
 
const void * GetNativeInterfaceAddress (UClass *InterfaceClass) const
 Returns a pointer to the const I* native interface object that this object implements. 更多...
 
UPackage * GetOutermost () const
 Legacy function, has the same behavior as GetPackage use GetPackage instead. 更多...
 
UObject * GetOutermostObject () const
 Walks up the list of outers until it finds the top-level one that isn't a package. 更多...
 
UPackage * GetPackage () const
 Walks up the list of outers until it finds a package directly associated with the object. 更多...
 
void GetPathName (const UObject *StopOuter, FString &ResultString) const
 Versions of GetPathName() that eliminates unnecessary copies and allocations.
 
FString GetPathName (const UObject *StopOuter=NULL) const
 Returns the fully qualified pathname for this object, in the format: 'Outermost[.Outer].Name' 更多...
 
FORCEINLINE TStatId GetStatID (bool bForDeferredUse=false) const
 Returns the stat ID of the object, used for profiling. 更多...
 
template<typename T >
T * GetTypedOuter () const
 Traverses the outer chain searching for the next object of a certain type. 更多...
 
UObject * GetTypedOuter (UClass *Target) const
 Traverses the outer chain searching for the next object of a certain type. 更多...
 
FORCEINLINE bool HasAllFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether all of the passed in flags are set. 更多...
 
FORCEINLINE bool HasAllMarks (EObjectMark Marks) const
 Tests an object for having ALL of a set of marks 更多...
 
FORCEINLINE bool HasAnyFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether any of the passed in flags are set. 更多...
 
FORCEINLINE bool HasAnyInternalFlags (EInternalObjectFlags FlagsToCheck) const
 Used to safely check whether any of the passed in internal flags are set. 更多...
 
FORCEINLINE bool HasAnyMarks (EObjectMark Marks) const
 Tests an object for having ANY of a set of marks 更多...
 
template<class T >
bool IsA () const
 Returns true if this object is of the template type.
 
template<typename OtherClassType >
FORCEINLINE bool IsA (OtherClassType SomeBase) const
 Returns true if this object is of the specified type.
 
bool IsDefaultSubobject () const
 Returns whether this component was instanced from a component/subobject template, or if it is a component/subobject template. 更多...
 
bool IsIn (const UObject *SomeOuter) const
 Return the dispatch to IsInOuter or IsInPackage depending on SomeOuter's class. 更多...
 
bool IsIn (const UPackage *SomePackage) const
 Overload to determine if an object is in the specified package which can now be different than its outer chain. 更多...
 
bool IsInA (const UClass *SomeBaseClass) const
 Find out if this object is inside (has an outer) that is of the specified class 更多...
 
bool IsInOuter (const UObject *SomeOuter) const
 Returns true if the object is contained in the specified outer.
 
bool IsInPackage (const UPackage *SomePackage) const
 Returns true if the object is contained in the specified package.
 
FORCEINLINE bool IsNative () const
 Checks if the object is native.
 
FORCEINLINE bool IsPendingKill () const
 Checks the PendingKill flag to see if it is dead but memory still valid
 
FORCEINLINE bool IsPendingKillOrUnreachable () const
 Checks if the object is pending kill or unreachable.
 
FORCEINLINE bool IsRooted () const
 Returns true if this object is explicitly rooted 更多...
 
bool IsTemplate (EObjectFlags TemplateTypes=RF_ArchetypeObject|RF_ClassDefaultObject) const
 Determines whether this object is a template object 更多...
 
FORCEINLINE bool IsUnreachable () const
 Checks if the object is unreachable.
 
FORCEINLINE void Mark (EObjectMark Marks) const
 Adds marks to an object 更多...
 
bool MarkPackageDirty () const
 Finds the outermost package and marks it dirty. 更多...
 
FORCEINLINE void MarkPendingKill ()
 Marks this object as RF_PendingKill.
 
virtual void OnClusterMarkedAsPendingKill ()
 Called during Garbage Collection to perform additional cleanup when the cluster is about to be destroyed due to PendingKill flag being set on it.
 
FORCEINLINE bool operator< (const UObjectBaseUtility &Other) const
 Overloaded < operator. 更多...
 
void ReattachExternalPackage ()
 Utility function to reattach the object external package, if any GetPackage will report the object external package if set after this call
 
FORCEINLINE void RemoveFromRoot ()
 Remove an object from the root set.
 
bool RootPackageHasAnyFlags (uint32 CheckFlagMask) const
 Checks whether this object's top-most package has any of the specified flags 更多...
 
FORCEINLINE void SetFlags (EObjectFlags NewFlags)
 Modifies object flags for a specific object
 
FORCEINLINE void SetInternalFlags (EInternalObjectFlags FlagsToSet) const
 Clears passed in internal flags. 更多...
 
FORCEINLINE bool ThisThreadAtomicallyClearedRFUnreachable ()
 Atomically clear the unreachable flag 更多...
 
FORCEINLINE void UnMark (EObjectMark Marks) const
 Removes marks from and object 更多...
 
- Public 成员函数 继承自 UObjectBase
FORCENOINLINE void AtomicallyClearFlags (EObjectFlags FlagsToClear)
 Atomically clears the specified flags. 更多...
 
FORCENOINLINE void AtomicallySetFlags (EObjectFlags FlagsToAdd)
 Atomically adds the specified flags. 更多...
 
FORCEINLINE UClass * GetClass () const
 Returns the UClass that defines the fields of this object
 
UPackage * GetExternalPackage () const
 Returns the external UPackage associated with this object, if any
 
UPackage * GetExternalPackageInternal () const
 Returns the external UPackage for this object, if any, NOT THREAD SAFE, used by internal gc reference collecting.
 
FORCEINLINE EObjectFlags GetFlags () const
 Retrieve the object flags directly 更多...
 
FORCEINLINE FName GetFName () const
 Returns the logical name of this object
 
FORCEINLINE UObject * GetOuter () const
 Returns the UObject this object resides in
 
FORCEINLINE uint32 GetUniqueID () const
 Returns the unique ID of the object...these are reused so it is only unique while the object is alive. 更多...
 
bool IsValidLowLevel () const
 Checks to see if the object appears to be valid 更多...
 
bool IsValidLowLevelFast (bool bRecursive=true) const
 Faster version of IsValidLowLevel. 更多...
 
void SetExternalPackage (UPackage *InPackage)
 Associate an external package directly to this object.
 
 UObjectBase (UClass *InClass, EObjectFlags InFlags, EInternalObjectFlags InInternalFlags, UObject *InOuter, FName InName)
 Constructor used by StaticAllocateObject 更多...
 
virtual ~UObjectBase ()
 Final destructor, removes the object from the object array, and indirectly, from any annotations
 

静态 Public 成员函数

static ENGINE_API void BuildStreamingData (UWorld *World, ULevel *TargetLevel=NULL, UTexture2D *TargetTexture=NULL)
 Rebuilds static streaming data for all levels in the specified UWorld. 更多...
 
- 静态 Public 成员函数 继承自 UObject
static void AddReferencedObjects (UObject *InThis, FReferenceCollector &Collector)
 Callback used to allow object register its direct object references that are not already covered by the token stream. 更多...
 
static bool CanCreateInCurrentContext (UObject *Template)
 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
 
static UObject * GetArchetypeFromRequiredInfo (const UClass *Class, const UObject *Outer, FName Name, EObjectFlags ObjectFlags)
 Return the template that an object with this class, outer and name would be 更多...
 
static const FName & SourceFileTagName ()
 Get the common tag name used for all asset source file import paths
 
static void UpdateClassesExcludedFromDedicatedClient (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames)
 Update the list of classes that we should exclude from dedicated client builds
 
static void UpdateClassesExcludedFromDedicatedServer (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames)
 Update the list of classes that we should exclude from dedicated server builds
 
- 静态 Public 成员函数 继承自 UObjectBase
static void EmitBaseReferences (UClass *RootClass)
 Emit GC tokens for UObjectBase, this might be UObject::StaticClass or Default__Class
 
static FString RemoveClassPrefix (const TCHAR *ClassName)
 Removes the class prefix from the given string
 

Public 属性

TArray< AActor * > Actors
 Array of all actors in this level, used by FActorIteratorBase and derived classes
 
TArray< AActor * > ActorsForGC
 Array of actors to be exposed to GC in this level. 更多...
 
uint8 bActorClusterCreated: 1
 Whether the level had its actor cluster created. 更多...
 
uint8 bAlreadyAssociatedStreamableResources:1
 Whether we already associated streamable resources. 更多...
 
uint8 bAlreadyClearedActorsSeamlessTravelFlag:1
 Whether we already cleared AActor::bActorSeamlessTraveled. 更多...
 
uint8 bAlreadyInitializedNetworkActors:1
 Whether we already initialized network actors. 更多...
 
uint8 bAlreadyMovedActors:1
 The below variables are used temporarily while making a level visible. 更多...
 
uint8 bAlreadyRoutedActorInitialize:1
 Whether we already routed initialize on actors. 更多...
 
uint8 bAlreadyShiftedActors:1
 Whether we already shift actors positions according to world composition. 更多...
 
uint8 bAlreadySortedActorList:1
 Whether we already sorted the actor list. 更多...
 
uint8 bAlreadyUpdatedComponents:1
 Whether we already updated components. 更多...
 
uint8 bAreComponentsCurrentlyRegistered:1
 Whether components are currently registered or not.
 
uint8 bClientOnlyVisible:1
 Whether this level is specific to client, visibility state will not be replicated to server
 
uint8 bGeometryDirtyForLighting:1
 Whether the geometry needs to be rebuilt for correct lighting
 
uint8 bHasCurrentActorCalledPreRegister
 Whether the actor referenced by CurrentActorIndexForUpdateComponents has called PreRegisterAllComponents
 
uint8 bHasRerunConstructionScripts:1
 Whether this level has gone through a complete rerun construction script pass.
 
uint8 bIsAssociatingLevel:1
 Whether this level is in the process of being associated with its world (i.e. 更多...
 
uint8 bIsBeingRemoved:1
 Whether the level is currently being removed from the world
 
uint8 bIsDisassociatingLevel: 1
 Whether this level is in the process of being disassociated with its world (i.e. 更多...
 
uint8 bIsLightingScenario:1
 Whether the level is a lighting scenario. 更多...
 
uint8 bIsVisible:1
 Whether the level is currently visible/ associated with the world
 
uint8 bRequireFullVisibilityToRender:1
 Whether this level should be fully added to the world before rendering his components

 
uint8 bStaticComponentsRegisteredInStreamingManager: 1
 Whether the level has finished registering all static components in the streaming manager. 更多...
 
uint8 bTextureStreamingRotationChanged: 1
 Whether a level transform rotation was applied since the texture streaming builds. 更多...
 
uint8 bWasDuplicated:1
 Whether this level was duplicated
 
uint8 bWasDuplicatedForPIE:1
 Whether this level was duplicated for PIE

 
int32 CurrentActorIndexForUnregisterComponents
 Current index into actors array for updating components. 更多...
 
int32 CurrentActorIndexForUpdateComponents
 Current index into actors array for updating components. 更多...
 
TWeakObjectPtr< AInstancedFoliageActor > InstancedFoliageActor
 Cached pointer to Foliage actor

 
TWeakObjectPtr< ALevelBounds > LevelBoundsActor
 Actor which defines level logical bounding box

 
FGuid LevelBuildDataId
 Identifies map build data specific to this level, eg lighting volume samples.
 
class ALevelScriptActor * LevelScriptActor
 The level scripting actor, created by instantiating the class from LevelScriptBlueprint. 更多...
 
FIntVector LightBuildLevelOffset
 Level offset at time when lighting was built
 
float LightmapTotalSize
 Total number of KB used for lightmap textures in the level.
 
UMapBuildDataRegistry * MapBuildData
 Registry for data from the map build. 更多...
 
class UModel * Model
 BSP UModel.
 
TArray< class UModelComponent * > ModelComponents
 BSP Model components used for rendering.
 
TArray< UNavigationDataChunk * > NavDataChunks
 Navigation related data that can be stored per level
 
class ANavigationObjectBase * NavListStart
 Start and end of the navigation list for this level, used for quickly fixing up when streaming this level in/out. 更多...
 
int32 NumTextureStreamingDirtyResources
 Num of resources that have changed since the last texture streaming build. 更多...
 
int32 NumTextureStreamingUnbuiltComponents
 Num of components missing valid texture streaming data. 更多...
 
UWorld * OwningWorld
 The World that has this level in its Levels array. 更多...
 
class FPrecomputedLightVolume * PrecomputedLightVolume
 The precomputed light information for this level. 更多...
 
FPrecomputedVisibilityHandler PrecomputedVisibilityHandler
 Contains precomputed visibility data for this level.
 
FPrecomputedVolumeDistanceField PrecomputedVolumeDistanceField
 Precomputed volume distance field for this level.
 
class FPrecomputedVolumetricLightmap * PrecomputedVolumetricLightmap
 The volumetric lightmap data for this level.
 
FRenderCommandFence RemoveFromSceneFence
 Fence used to track when the rendering thread has finished referencing this ULevel's resources.
 
float ShadowmapTotalSize
 Total number of KB used for shadowmap textures in the level.
 
TArray< FVector > StaticNavigableGeometry
 threes of triangle vertices - AABB filtering friendly. 更多...
 
TArray< FGuid > StreamingTextureGuids
 The Guid of each texture refered by FStreamingTextureBuildInfo::TextureLevelIndex

 
class FTickTaskLevel * TickTaskLevel
 Data structures for holding the tick functions
 
FURL URL
 URL associated with this level.
 

静态 Public 属性

static ENGINE_API FSimpleMulticastDelegate LevelDirtiedEvent
 Called when a level package has been dirtied.
 
static ENGINE_API TMap< FName, TWeakObjectPtr< UWorld > > StreamedLevelsOwningWorld
 Set before calling LoadPackage for a streaming level to ensure that OwningWorld is correct on the Level
 

Protected 属性

TArray< UAssetUserData * > AssetUserData
 Array of user data stored with the asset
 

额外继承的成员函数

- Protected 成员函数 继承自 UObject
bool CanCheckDefaultSubObjects (bool bForceCheck, bool &bResult) const
 Checks it's ok to perform subobjects check at this time.
 
virtual bool CheckDefaultSubobjectsInternal () const
 Checks default sub-object assumptions. 更多...
 
virtual FString GetDetailedInfoInternal () const
 This function actually does the work for the GetDetailedInfo() and is virtual. 更多...
 
- Protected 成员函数 继承自 UObjectBase
virtual void DeferredRegister (UClass *UClassStaticClass, const TCHAR *PackageName, const TCHAR *Name)
 Convert a boot-strap registered class into a real one, add to uobject array, etc 更多...
 
void LowLevelRename (FName NewName, UObject *NewOuter=NULL)
 Just change the FName and Outer and rehash into name hash tables. 更多...
 
void Register (const TCHAR *PackageName, const TCHAR *Name)
 Enqueue the registration for this object.
 
virtual void RegisterDependencies ()
 Force any base classes to be registered first
 
FORCEINLINE void SetFlagsTo (EObjectFlags NewFlags)
 Set the object flags directly 更多...
 
 UObjectBase (EObjectFlags InFlags)
 Constructor used for bootstrapping 更多...
 
- 静态 Protected 成员函数 继承自 UObjectBaseUtility
static void CreateClusterFromObject (UObjectBaseUtility *ClusterRootObject, UObjectBaseUtility *ReferencingObject)
 Helper function to create a cluster from UObject
 

详细描述

A Level is a collection of Actors (lights, volumes, mesh instances etc.).

Multiple Levels can be loaded and unloaded into the World to create a streaming experience.

参见
https://docs.unrealengine.com/latest/INT/Engine/Levels
UActor

构造及析构函数说明

◆ ULevel()

ULevel::ULevel ( FVTableHelper &  Helper)
inline

DO NOT USE.

This constructor is for internal usage only for hot-reload purposes.

成员函数说明

◆ ApplyWorldOffset()

ENGINE_API void ULevel::ApplyWorldOffset ( const FVector &  InWorldOffset,
bool  bWorldShift 
)

Shift level actors by specified offset The offset vector will get subtracted from all actors positions and corresponding data structures

参数
InWorldOffsetVector to shift all actors by
bWorldShiftWhether this call is part of whole world shifting

◆ BeginDestroy()

virtual void ULevel::BeginDestroy ( )
overridevirtual

Called before destroying the object.

This is called immediately upon deciding to destroy the object, to allow the object to begin an asynchronous cleanup process.

重载 UObject .

◆ BuildStreamingData()

static ENGINE_API void ULevel::BuildStreamingData ( UWorld *  World,
ULevel *  TargetLevel = NULL,
UTexture2D *  TargetTexture = NULL 
)
static

Rebuilds static streaming data for all levels in the specified UWorld.

参数
WorldWhich world to rebuild streaming data for. If NULL, all worlds will be processed.
TargetLevel[opt] Specifies a single level to process. If NULL, all levels will be processed.
TargetTexture[opt] Specifies a single texture to process. If NULL, all textures will be processed.

◆ CanBeClusterRoot()

virtual bool ULevel::CanBeClusterRoot ( ) const
overridevirtual

Called after load to determine if the object can be a cluster root

返回
true if this object can be a cluster root

重载 UObjectBaseUtility .

◆ CleanupLevel()

ENGINE_API void ULevel::CleanupLevel ( )

Flag this level instance for destruction.

This is called by UWorld::CleanupWorld to flag the level and its owned packages for destruction.

◆ FinishDestroy()

virtual void ULevel::FinishDestroy ( )
overridevirtual

Called to finish destroying the object.

After UObject::FinishDestroy is called, the object's memory should no longer be accessed.

警告
Because properties are destroyed here, Super::FinishDestroy() should always be called at the end of your child class's FinishDestroy() method, rather than at the beginning.

重载 UObject .

◆ GetCachedLevelCollection()

FLevelCollection * ULevel::GetCachedLevelCollection ( ) const
inline

Returns the cached collection that contains this level, if any.

May be null.

◆ GetDefaultBrush()

ENGINE_API ABrush * ULevel::GetDefaultBrush ( ) const

Returns the default brush for this level.

返回
The default brush for this level.

◆ GetLevelScriptActor()

ENGINE_API class ALevelScriptActor * ULevel::GetLevelScriptActor ( ) const

Returns the level scripting actor associated with this level

返回
a pointer to the level scripting actor for this level (may be NULL)

◆ GetStaticNavigableGeometry()

ENGINE_API TArray< FVector > const * ULevel::GetStaticNavigableGeometry ( ) const
inline
待办事项:
document

◆ GetWorldSettings()

ENGINE_API AWorldSettings * ULevel::GetWorldSettings ( bool  bChecked = true) const

Returns the world info for this level.

返回
The AWorldSettings for this level.

◆ HasVisibilityChangeRequestPending()

ENGINE_API bool ULevel::HasVisibilityChangeRequestPending ( ) const

Whether the level is currently pending being made invisible or visible.


◆ HasVisibilityRequestPending()

bool ULevel::HasVisibilityRequestPending ( ) const

Whether the level is currently pending being made visible.


◆ IncrementalUnregisterComponents()

bool ULevel::IncrementalUnregisterComponents ( int32  NumComponentsToUnregister)

Incrementally unregisters all components of actors associated with this level.

This is done at the granularity of actors (individual actors have all of their components unregistered)

参数
NumComponentsToUnregisterMinimum number of components to unregister in this run, 0 for all

◆ IncrementalUpdateComponents()

void ULevel::IncrementalUpdateComponents ( int32  NumComponentsToUpdate,
bool  bRerunConstructionScripts,
FRegisterComponentContext *  Context = nullptr 
)

Incrementally updates all components of actors associated with this level.

参数
NumComponentsToUpdateNumber of components to update in this run, 0 for all
bRerunConstructionScriptsIf we want to rerun construction scripts on actors in level

◆ InvalidateModelSurface()

void ULevel::InvalidateModelSurface ( )

Discards the cached data used to render the level's UModel.

Assumes that the faces and vertex positions haven't changed, only the applied materials.

◆ IsReadyForFinishDestroy()

virtual bool ULevel::IsReadyForFinishDestroy ( )
overridevirtual

Called to check if the object is ready for FinishDestroy.

This is called after BeginDestroy to check the completion of the potentially asynchronous object cleanup.

返回
True if the object's asynchronous cleanup has completed and it is ready for FinishDestroy to be called.

重载 UObject .

◆ PostDuplicate()

virtual void ULevel::PostDuplicate ( bool  bDuplicateForPIE)
overridevirtual

Called after duplication & serialization and before PostLoad.

Used to e.g. make sure UStaticMesh's UModel gets copied as well. Note: NOT called on components on actor duplication (alt-drag or copy-paste). Use PostEditImport as well to cover that case.

重载 UObject .

◆ PostInitProperties()

virtual void ULevel::PostInitProperties ( )
overridevirtual

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

This is called before any serialization or other setup has happened.

重载 UObject .

◆ PostLoad()

virtual void ULevel::PostLoad ( )
overridevirtual

Do any object-specific cleanup required immediately after loading an object.

This is not called for newly-created objects, and by default will always execute on the game thread.

重载 UObject .

◆ PreDuplicate()

virtual void ULevel::PreDuplicate ( FObjectDuplicationParameters &  DupParams)
overridevirtual

Called before duplication.

参数
DupParamsthe full parameters the object will be duplicated with. Allows access to modify params such as the duplication seed for example for pre-filling the dup-source => dup-target map used by StaticDuplicateObject.
参见
FObjectDuplicationParameters

重载 UObject .

◆ PreSave()

virtual void ULevel::PreSave ( const class ITargetPlatform *  TargetPlatform)
overridevirtual

Presave function.

Gets called once before an object gets serialized for saving. This function is necessary for save time computation as Serialize gets called three times per object from within SavePackage.

警告
: Objects created from within PreSave will NOT have PreSave called on them!!!

重载 UObject .

◆ RouteActorInitialize()

void ULevel::RouteActorInitialize ( )

Routes pre and post initialize to actors and also sets volumes.

待办事项:
seamless worlds: this doesn't correctly handle volumes in the multi- level case

◆ Serialize()

virtual void ULevel::Serialize ( FArchive &  Ar)
overridevirtual

Handles reading, writing, and reference collecting using FArchive.

This implementation handles all FProperty serialization, but can be overridden for native variables.

重载 UObject .

◆ SetCachedLevelCollection()

void ULevel::SetCachedLevelCollection ( FLevelCollection *const  InCachedLevelCollection)
inline

Sets the cached level collection that contains this level.

Should only be called by FLevelCollection.

◆ SortActorList()

ENGINE_API void ULevel::SortActorList ( )

Sorts the actor list by net relevancy and static behaviour.

First all not net relevant static actors, then all net relevant static actors and then the rest. This is done to allow the dynamic and net relevant actor iterators to skip large amounts of actors.

◆ UpdateLevelComponents()

ENGINE_API void ULevel::UpdateLevelComponents ( bool  bRerunConstructionScripts,
FRegisterComponentContext *  Context = nullptr 
)

Updates all components of actors associated with this level (aka in Actors array) and creates the BSP model components.

参数
bRerunConstructionScriptsIf we want to rerun construction scripts on actors in level

类成员变量说明

◆ ActorsForGC

TArray<AActor*> ULevel::ActorsForGC

Array of actors to be exposed to GC in this level.

All other actors will be referenced through ULevelActorContainer

◆ bActorClusterCreated

uint8 ULevel::bActorClusterCreated

Whether the level had its actor cluster created.

This doesn't mean that the creation was successful.

◆ bAlreadyAssociatedStreamableResources

uint8 ULevel::bAlreadyAssociatedStreamableResources

Whether we already associated streamable resources.


◆ bAlreadyClearedActorsSeamlessTravelFlag

uint8 ULevel::bAlreadyClearedActorsSeamlessTravelFlag

Whether we already cleared AActor::bActorSeamlessTraveled.


◆ bAlreadyInitializedNetworkActors

uint8 ULevel::bAlreadyInitializedNetworkActors

Whether we already initialized network actors.


◆ bAlreadyMovedActors

uint8 ULevel::bAlreadyMovedActors

The below variables are used temporarily while making a level visible.


Whether we already moved actors.

◆ bAlreadyRoutedActorInitialize

uint8 ULevel::bAlreadyRoutedActorInitialize

Whether we already routed initialize on actors.


◆ bAlreadyShiftedActors

uint8 ULevel::bAlreadyShiftedActors

Whether we already shift actors positions according to world composition.


◆ bAlreadySortedActorList

uint8 ULevel::bAlreadySortedActorList

Whether we already sorted the actor list.


◆ bAlreadyUpdatedComponents

uint8 ULevel::bAlreadyUpdatedComponents

Whether we already updated components.


◆ bIsAssociatingLevel

uint8 ULevel::bIsAssociatingLevel

Whether this level is in the process of being associated with its world (i.e.

we are within AddToWorld for this level

◆ bIsDisassociatingLevel

uint8 ULevel::bIsDisassociatingLevel

Whether this level is in the process of being disassociated with its world (i.e.

we are within RemoveFromWorld for this level

◆ bIsLightingScenario

uint8 ULevel::bIsLightingScenario

Whether the level is a lighting scenario.

Lighting is built separately for each lighting scenario level with all other scenario levels hidden. Only one lighting scenario level should be visible at a time for correct rendering, and lightmaps from that level will be used on the rest of the world. Note: When a lighting scenario level is present, lightmaps for all streaming levels are placed in the scenario's _BuildData package.
This means that lightmaps for those streaming levels will not be streamed with them.

◆ bStaticComponentsRegisteredInStreamingManager

uint8 ULevel::bStaticComponentsRegisteredInStreamingManager

Whether the level has finished registering all static components in the streaming manager.

Once a level static components are registered, all new components need to go through the dynamic path. This flag is used to direct the registration to the right path with a low perf impact.

◆ bTextureStreamingRotationChanged

uint8 ULevel::bTextureStreamingRotationChanged

Whether a level transform rotation was applied since the texture streaming builds.

Invalidates the precomputed streaming bounds.

◆ CurrentActorIndexForUnregisterComponents

int32 ULevel::CurrentActorIndexForUnregisterComponents

Current index into actors array for updating components.


◆ CurrentActorIndexForUpdateComponents

int32 ULevel::CurrentActorIndexForUpdateComponents

Current index into actors array for updating components.


◆ LevelScriptActor

class ALevelScriptActor* ULevel::LevelScriptActor

The level scripting actor, created by instantiating the class from LevelScriptBlueprint.

This handles all level scripting

◆ MapBuildData

UMapBuildDataRegistry* ULevel::MapBuildData

Registry for data from the map build.

This is stored in a separate package from the level to speed up saving / autosaving. ReleaseRenderingResources must be called before changing what is referenced, to update the rendering thread state.

◆ NavListStart

class ANavigationObjectBase* ULevel::NavListStart

Start and end of the navigation list for this level, used for quickly fixing up when streaming this level in/out.

@TODO DEPRECATED - DELETE

◆ NumTextureStreamingDirtyResources

int32 ULevel::NumTextureStreamingDirtyResources

Num of resources that have changed since the last texture streaming build.

Updated in map check.

◆ NumTextureStreamingUnbuiltComponents

int32 ULevel::NumTextureStreamingUnbuiltComponents

Num of components missing valid texture streaming data.

Updated in map check.

◆ OwningWorld

UWorld* ULevel::OwningWorld

The World that has this level in its Levels array.

This is not the same as GetOuter(), because GetOuter() for a streaming level is a vestigial world that is not used. It should not be accessed during BeginDestroy(), just like any other UObject references, since GC may occur in any order.

◆ PrecomputedLightVolume

class FPrecomputedLightVolume* ULevel::PrecomputedLightVolume

The precomputed light information for this level.


The extra level of indirection is to allow forward declaring FPrecomputedLightVolume.

◆ StaticNavigableGeometry

TArray<FVector> ULevel::StaticNavigableGeometry

threes of triangle vertices - AABB filtering friendly.

Stored if there's a runtime need to rebuild navigation that accepts BSPs as well - it's a lot easier this way than retrieve this data at runtime


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