FStreamingManagerCollection

Streaming manager collection, routing function calls to streaming managers that have been added via AddStreamingManager.

Windows
MacOS
Linux

Inheritance Hierarchy

IStreamingManager

FStreamingManagerCollection

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ContentStreaming.h

Include

#include "ContentStreaming.h"

Syntax

struct FStreamingManagerCollection : public IStreamingManager

Remarks

Streaming manager collection, routing function calls to streaming managers that have been added via AddStreamingManager.

Variables

Name Description

Protected variable

IAnimationStrea...

 

AnimationStreamingManager

The animation streaming manager, should always exist

Protected variable

IAudioStreaming...

 

AudioStreamingManager

The audio streaming manager, should always exist

Protected variable

int32

 

DisableResourceStreamingCount

Count of how many nested DisableResourceStreaming's were called - will enable when this is 0

Protected variable

float

 

LoadMapTimeLimit

Maximum number of seconds to block in StreamAllResources(), by default (.ini setting).

Protected variable

int32

 

NumIterations

Number of iterations to perform. Gets reset to 1 each frame.

Protected variable

TArray< IStream...

 

StreamingManagers

Array of streaming managers to route function calls to

Protected variable

FRenderAssetStr...

 

TextureStreamingManager

The currently added texture streaming manager. Can be NULL

Constructors

Name Description

Public function

FStreamingManagerCollection()

Default constructor, initializing all member variables.

Functions

Name Description

Protected function Virtual

void

 

AddOrRemoveTextureStreamingManagerIfNeeded

(
    bool bIsInit
)

Public function

void

 

AddStreamingManager

(
    IStreamingManager* StreamingMa...
)

Adds a streaming manager to the array of managers to route function calls to.

Public function

void

 

DisableResourceStreaming()

Disables resource streaming.

Public function

void

 

EnableResourceStreaming()

Enables resource streaming, previously disabled with enableResourceStreaming.

Public function Const

IAnimationSt...

 

GetAnimationStreamingManager()

Gets a reference to the Animation Streaming Manager interface

Public function Const

IAudioStream...

 

GetAudioStreamingManager()

Gets a reference to the Audio Streaming Manager interface

Public function Const

IRenderAsset...

 

GetTextureStreamingManager()

Gets a reference to the Texture Streaming Manager interface

Public function Const

bool

 

IsStreamingEnabled()

Checks whether any kind of streaming is active

Public function Virtual Const

bool

 

IsTextureStreamingEnabled()

Checks whether texture streaming is active

Public function

void

 

RemoveStreamingManager

(
    IStreamingManager* StreamingMa...
)

Removes a streaming manager from the array of managers to route function calls to.

Public function

void

 

SetNumIterationsForNextFrame

(
    int32 NumIterations
)

Sets the number of iterations to use for the next time UpdateResourceStreaming is being called.

Overridden from IStreamingManager

Name Description

Public function Virtual

void

 

AddLevel

(
    ULevel* Level
)

Adds a ULevel to the streaming manager.

Public function Virtual

int32

 

BlockTillAllRequestsFinished

(
    float TimeLimit,
    bool bLogResults
)

Blocks till all pending requests are fulfilled.

Public function Virtual

void

 

CancelForcedResources()

Cancels the timed Forced resources (i.e used the Kismet action "Stream In Textures").

Public function Virtual

bool

 

Exec

(
    UWorld* InWorld,
    const TCHAR* Cmd,
    FOutputDevice& Ar
)

Allows the streaming manager to process exec commands.

Public function Virtual Const

int32

 

GetNumWantingResources()

Returns the number of resources that currently wants to be streamed in.

Public function Virtual Const

int32

 

GetNumWantingResourcesID()

Returns the current ID for GetNumWantingResources().

Public function Virtual

void

 

NotifyActorDestroyed

(
    AActor* Actor
)

Called when a spawned actor is destroyed.

Public function Virtual

void

 

NotifyLevelChange()

Notifies manager of "level" change.

Notifies managers of "level" change.

Public function Virtual

void

 

NotifyLevelOffset

(
    ULevel* Level,
    const FVector& Offset
)

Notifies manager that level primitives were shifted.

Public function Virtual

void

 

NotifyPrimitiveDetached

(
    const UPrimitiveComponent* Pri...
)

Called when a primitive is detached from an actor or another component.

Public function Virtual

void

 

NotifyPrimitiveUpdated

(
    const UPrimitiveComponent* Pri...
)

Called when a primitive streaming data needs to be updated.

Public function Virtual

void

 

NotifyPrimitiveUpdated_Concurrent

(
    const UPrimitiveComponent* Pri...
)

Called when a primitive streaming data needs to be updated in the last stage of the frame.

Public function Virtual

void

 

PropagateLightingScenarioChange()

Propagates a change to the active lighting scenario.

Public function Virtual

void

 

RemoveLevel

(
    ULevel* Level
)

Removes a ULevel from the streaming manager.

Public function Virtual

void

 

SetDisregardWorldResourcesForFrames

(
    int32 NumFrames
)

Don't stream world resources for the next NumFrames.

Public function Virtual

int32

 

StreamAllResources

(
    float TimeLimit
)

Streams in/out all resources that wants to and blocks until it's done.

Public function Virtual

void

 

Tick

(
    float DeltaTime,
    bool bProcessEverything
)

Calls UpdateResourceStreaming(), and does per-frame cleaning.

Public function Virtual

void

 

UpdateResourceStreaming

(
    float DeltaTime,
    bool bProcessEverything
)

Updates streaming, taking into account all current view infos.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback