Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/WorldPartition
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UWorldPartition
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/WorldPartition/WorldPartition.h |
| Include | #include "WorldPartition/WorldPartition.h" |
Syntax
class UWorldPartition :
public UObject,
public TActorDescContainerCollection< TObjectPtr< UActorDescContainer >>,
public IWorldPartitionCookPackageGenerator
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UActorDescContainer > | ActorDescContainer | ||
| FLoaderAdapterAlwaysLoadedActors * | AlwaysLoadedActors | ||
| bool | bEnableStreaming | Enables streaming for this world. | |
| TOptional< bool > | bOverrideEnableStreamingInEditor | ||
| TObjectPtr< UWorldPartitionEditorHash > | EditorHash | ||
| FLoaderAdapterActorList * | ForceLoadedActors | ||
| FActorDescContainerRegistrationDelegate | OnActorDescContainerRegistered | ||
| FActorDescContainerRegistrationDelegate | OnActorDescContainerUnregistered | ||
| FWorldPartitionBeginCookDelegate | OnBeginCook | ||
| FWorldPartitionGenerateStreamingDelegate | OnPreGenerateStreaming | ||
| FLoaderAdapterActorList * | PinnedActors | ||
| TObjectPtr< UWorldPartitionRuntimeHash > | RuntimeHash | ||
| EWorldPartitionServerStreamingMode | ServerStreamingMode | ||
| EWorldPartitionServerStreamingOutMode | ServerStreamingOutMode | ||
| IWorldPartitionEditor * | WorldPartitionEditor |
Functions
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. | |
| bool | ResolveSubobject
(
const TCHAR* SubObjectPath, |
Called to defer loading a subobject to its top-level container object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from IWorldPartitionCookPackageGenerator
| Type | Name | Description | |
|---|---|---|---|
| bool | GatherPackagesToCook
(
IWorldPartitionCookPackageContext& CookContext |
||
| UWorldPartitionRuntimeCell * | GetCellForPackage
(
const FWorldPartitionCookPackage& PackageToCook |
||
| bool | PopulateGeneratedPackageForCook
(
IWorldPartitionCookPackageContext& CookContext, |
||
| bool | PopulateGeneratorPackageForCook
(
IWorldPartitionCookPackageContext& CookContext, |
||
| bool | PrepareGeneratorPackageForCook
(
IWorldPartitionCookPackageContext& CookContext, |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FCheckForErrorsParams | Struct of optional parameters passed to check for errors function. | ||
| FContainerRegistrationParams | |||
| FGenerateStreamingContext | |||
| FGenerateStreamingParams |
Typedefs
| Name | Description |
|---|---|
| FActorDescContainerRegistrationDelegate | |
| FStreamingGenerationErrorHandlerOverride | |
| FWorldPartitionBeginCookDelegate | |
| FWorldPartitionChangedEvent | Event when world partition was enabled/disabled in the world. |
| FWorldPartitionGenerateStreamingDelegate |
Constants
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanAddLoadedLevelToWorld
(
ULevel* InLevel |
CanAddLoadedLevelToWorld is deprecated, use CanAddCellToWorld instead. | |
| bool | CanBeUsedByLevelInstance is deprecated. | ||
| void | CheckForErrors
(
IStreamingGenerationErrorHandler* ErrorHandler, |
CheckForErrors is deprecated, CheckForErrors with FCheckForErrorsParams should be used instead. | |
| bool | GenerateContainerStreaming
(
const UActorDescContainer* ActorDescContainer, |
GenerateContainerStreaming is deprecated, use GenerateContainerStreaming with a param struct instead | |
| bool | GenerateStreaming
(
TArray< FString >* OutPackagesToGenerate |
GenerateStreaming is deprecated, use GenerateStreaming with a param struct instead | |
| FBox | GetWorldBounds is deprecated, use GetEditorWorldBounds or GetRuntimeWorldBounds instead. | ||
| UActorDescContainer * | RegisterActorDescContainer
(
const FName& ContainerPackage |
Use RegisterActorDescContainer with FContainerRegistrationParams instead. | |
| void | SetCanBeUsedByLevelInstance
(
bool bInCanBeUsedByLevelInstance |
SetCanBeUsedByLevelInstance is deprecated. | |
| void | UpdateStreamingState is deprecated, use UWorldPartitionSubsystem::UpdateStreamingState instead. |