Navigation
API > API/Runtime > API/Runtime/Engine
| Name | ULevelInstanceSubsystem |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/LevelInstance/LevelInstanceSubsystem.h |
| Include Path | #include "LevelInstance/LevelInstanceSubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class ULevelInstanceSubsystem :
public UWorldSubsystem ,
public IStreamingWorldSubsystemInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UWorldSubsystem → ULevelInstanceSubsystem
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULevelInstanceSubsystem() |
LevelInstance/LevelInstanceSubsystem.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ULevelInstanceSubsystem() |
LevelInstance/LevelInstanceSubsystem.h |
Classes
| Name | Remarks |
|---|---|
| FLevelInstanceChanged | Editor-only event triggered when level instance is committed with changes |
| FLevelInstanceEdit | |
| FLevelInstanceEditCancelled | |
| FLevelInstancesUpdated | Editor-only event triggered when level instances are reloaded after a change |
| FPropertyOverrideEdit |
Structs
| Name | Remarks |
|---|---|
| FLevelInstance | |
| FLevelsToRemoveScope |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bPrimitiveColorHandlerRegistered | bool | LevelInstance/LevelInstanceSubsystem.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsCommittingLevelInstance | bool | LevelInstance/LevelInstanceSubsystem.h | ||
| bIsCreatingLevelInstance | bool | LevelInstance/LevelInstanceSubsystem.h | ||
| ChildEdits | TMap< FLevelInstanceID, int32 > | LevelInstance/LevelInstanceSubsystem.h | ||
| CurrentEditLevelInstanceActor | FWorldPartitionReference | LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstanceChangedEvent | FLevelInstanceChanged | LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstanceEdit | TUniquePtr< FLevelInstanceEdit > | LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstanceEditCancelled | FLevelInstanceEditCancelled | LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstancesToLoadOrUpdate | TMap< ILevelInstanceInterface *, bool > | LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstancesToUnload | TSet< FLevelInstanceID > | LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstancesUpdatedEvent | FLevelInstancesUpdated | LevelInstance/LevelInstanceSubsystem.h | ||
| LevelsToRemoveScope | TUniquePtr< FLevelsToRemoveScope > | Optional scope to accelerate level unload by batching them. | LevelInstance/LevelInstanceSubsystem.h | |
| LoadedLevelInstances | TMap< FLevelInstanceID, FLevelInstance > | LevelInstance/LevelInstanceSubsystem.h | ||
| LoadingLevelInstances | TSet< FLevelInstanceID > | LevelInstance/LevelInstanceSubsystem.h | ||
| PropertyOverrideEdit | TUniquePtr< FPropertyOverrideEdit > | LevelInstance/LevelInstanceSubsystem.h | ||
| RegisteredLevelInstances | TMap< FLevelInstanceID, ILevelInstanceInterface * > | LevelInstance/LevelInstanceSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BlockLoadLevelInstance
(
ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
void BlockUnloadLevelInstance
(
ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool BreakLevelInstance
(
ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
bool CanBreakLevelInstance
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool CanCommitLevelInstance
(
const ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstance/LevelInstanceSubsystem.h | |||
bool CanEditLevelInstance
(
const ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstance/LevelInstanceSubsystem.h | |||
bool CanPackAllLoadedActors() |
LevelInstance/LevelInstanceSubsystem.h | ||
bool CommitLevelInstance
(
ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
ILevelInstanceInterface * CreateLevelInstanceFrom
(
const TArray< AActor* >& ActorsToMove, |
LevelInstance/LevelInstanceSubsystem.h | ||
void EditLevelInstance
(
ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
void ForEachActorInLevelInstance
(
const ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
void ForEachLevelInstanceActorAncestors
(
const ULevel* Level, |
Returns the upper chain of level instance actors for the specified level starting with the level instance referencing the level. | LevelInstance/LevelInstanceSubsystem.h | |
void ForEachLevelInstanceAncestors
(
AActor* Actor, |
LevelInstance/LevelInstanceSubsystem.h | ||
void ForEachLevelInstanceAncestors
(
const AActor* Actor, |
LevelInstance/LevelInstanceSubsystem.h | ||
void ForEachLevelInstanceAncestorsAndSelf
(
const AActor* Actor, |
Runs a lambda operation along the ancestors that own the LevelInstance. | LevelInstance/LevelInstanceSubsystem.h | |
void ForEachLevelInstanceAncestorsAndSelf
(
AActor* Actor, |
LevelInstance/LevelInstanceSubsystem.h | ||
void ForEachLevelInstanceChild
(
const ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
void ForEachLevelInstanceChild
(
ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
ILevelInstanceInterface * GetEditingLevelInstance() |
LevelInstance/LevelInstanceSubsystem.h | ||
ILevelInstanceInterface * GetLevelInstance
(
const FLevelInstanceID& LevelInstanceID |
LevelInstance/LevelInstanceSubsystem.h | ||
bool GetLevelInstanceBounds
(
const ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
bool GetLevelInstanceEditorBounds
(
const ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
ULevel * GetLevelInstanceLevel
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
ULevelStreamingLevelInstance * GetLevelInstanceLevelStreaming
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
TArray< ILevelInstanceInterface * > GetLevelInstances
(
const FString& WorldAssetPackage |
LevelInstance/LevelInstanceSubsystem.h | ||
ILevelInstanceInterface * GetOwningLevelInstance
(
const ULevel* Level |
LevelInstance/LevelInstanceSubsystem.h | ||
ILevelInstanceInterface * GetParentLevelInstance
(
const AActor* Actor |
LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstance/LevelInstanceSubsystem.h | |||
bool HasChildEdit
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool HasDirtyChildrenLevelInstances
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool HasParentEdit
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool IsCurrent
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool IsEditingLevelInstance
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool IsEditingLevelInstanceDirty
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool IsEditingLevelInstancePropertyOverrides
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool IsLoaded
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool IsLoading
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool IsSubSelectionEnabled() |
LevelInstance/LevelInstanceSubsystem.h | ||
bool LevelInstanceHasLevelScriptBlueprint
(
const ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool MoveActorsTo
(
ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstance/LevelInstanceSubsystem.h | |||
void OnActorDeleted
(
AActor* Actor |
LevelInstance/LevelInstanceSubsystem.h | ||
void OnExitEditorMode() |
LevelInstance/LevelInstanceSubsystem.h | ||
FLevelInstanceChanged & OnLevelInstanceChanged() |
LevelInstance/LevelInstanceSubsystem.h | ||
FLevelInstanceEditCancelled & OnLevelInstanceEditCancelled() |
LevelInstance/LevelInstanceSubsystem.h | ||
FLevelInstancesUpdated & OnLevelInstancesUpdated() |
LevelInstance/LevelInstanceSubsystem.h | ||
void OnTryExitEditorMode() |
LevelInstance/LevelInstanceSubsystem.h | ||
void PackAllLoadedActors() |
LevelInstance/LevelInstanceSubsystem.h | ||
bool PassLevelInstanceFilter
(
UWorld* World, |
LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstance/LevelInstanceSubsystem.h | |||
FLevelInstanceID RegisterLevelInstance
(
ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
void RequestLoadLevelInstance
(
ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
void RequestUnloadLevelInstance
(
ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
bool SetCurrent
(
ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h | ||
void SetIsHiddenEdLayer
(
ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
void SetIsTemporarilyHiddenInEditor
(
ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
void Tick() |
LevelInstance/LevelInstanceSubsystem.h | ||
void UnregisterLevelInstance
(
ILevelInstanceInterface* LevelInstance |
LevelInstance/LevelInstanceSubsystem.h |
Overridden from UWorldSubsystem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool DoesSupportWorldType
(
EWorldType::Type WorldType |
LevelInstance/LevelInstanceSubsystem.h |
Overridden from USubsystem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
Implement this for deinitialization of instances of the system | LevelInstance/LevelInstanceSubsystem.h | |
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
Initializes the world subsystem. | LevelInstance/LevelInstanceSubsystem.h |
Overridden from IStreamingWorldSubsystemInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnUpdateStreamingState() |
LevelInstance/LevelInstanceSubsystem.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddReferencedObjects
(
UObject* InThis, |
LevelInstance/LevelInstanceSubsystem.h | ||
static bool CanUsePackage
(
FName InPackageName |
LevelInstance/LevelInstanceSubsystem.h | ||
static bool CanUseWorldAsset
(
const ILevelInstanceInterface* LevelInstance, |
Checks if a WorldAsset can/should be used in a LevelInstance | LevelInstance/LevelInstanceSubsystem.h | |
static bool CheckForLoop
(
const ILevelInstanceInterface* LevelInstance, |
LevelInstance/LevelInstanceSubsystem.h | ||
static bool CheckForLoop
(
const ILevelInstanceInterface* LevelInstance, |
Lambda expr format that checks ancestor owners of a LevelInstance. | LevelInstance/LevelInstanceSubsystem.h | |
static bool GetLevelInstanceBoundsFromPackage
(
const FTransform& InstanceTransform, |
LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstance/LevelInstanceSubsystem.h | |||
static void RegisterPrimitiveColorHandler() |
LevelInstance/LevelInstanceSubsystem.h | ||
static void ResetLoadersForWorldAsset
(
const FString& WorldAsset |
LevelInstance/LevelInstanceSubsystem.h | ||
| LevelInstance/LevelInstanceSubsystem.h | |||
static void UnregisterPrimitiveColorHandler() |
LevelInstance/LevelInstanceSubsystem.h |