ULevelStreamingDynamic

LevelStreamingDynamic Dynamically controlled streaming implementation.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/LevelStreamingDynamic.h

Include

#include "Engine/LevelStreamingDynamic.h"

Syntax

class ULevelStreamingDynamic : public ULevelStreaming

Remarks

LevelStreamingDynamic

Dynamically controlled streaming implementation.

Variables

Name Description

Public variable

uint32: 1

 

bInitiallyLoaded

Whether the level should be loaded at startup

Public variable

uint32: 1

 

bInitiallyVisible

Whether the level should be visible at startup if it is loaded

Constructors

Name Description

Public function

ULevelStreamingDynamic

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

ULevelStream...

 

LoadLevelInstance

(
    UObject* WorldContextObject,
    FString LevelName,
    FVector Location,
    FRotator Rotation,
    bool& bOutSuccess,
    const FString& OptionalLevelNameOv...,
    TSubclassOf< ULevelStreamingDynamic...,
    bool bLoadAsTempPackage
)

Stream in a level with a specific location and rotation.

Public function Static

ULevelStream...

 

LoadLevelInstanceBySoftObjectPtr

(
    UObject* WorldContextObject,
    TSoftObjectPtr< UWorld > Level,
    const FTransform LevelTransform,
    bool& bOutSuccess,
    const FString& OptionalLevelNameOv...,
    TSubclassOf< ULevelStreamingDynamic...,
    bool bLoadAsTempPackage
)

Public function Static

ULevelStream...

 

LoadLevelInstanceBySoftObjectPtr

(
    UObject* WorldContextObject,
    TSoftObjectPtr< UWorld > Level,
    FVector Location,
    FRotator Rotation,
    bool& bOutSuccess,
    const FString& OptionalLevelNameOv...,
    TSubclassOf< ULevelStreamingDynamic...,
    bool bLoadAsTempPackage
)

Overridden from ULevelStreaming

Name Description

Public function Virtual

void

 

SetShouldBeLoaded

(
    bool bInShouldBeLoaded
)

Virtual that can be overriden to change whether a streaming level should be loaded.

Public function Virtual Const

bool

 

ShouldBeLoaded()

Return whether this level should be present in memory which in turn tells the streaming code to stream it in.

Overridden from UObject

Name Description

Public function Virtual

void

 

PostLoad()

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

Constants

Name

Description

UniqueLevelInstanceId

Counter used by LoadLevelInstance to create unique level names.