Navigation
API > API/Runtime > API/Runtime/Engine
Pure virtual base class of a streaming manager.
| Name | IStreamingManager |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/ContentStreaming.h |
| Include Path | #include "ContentStreaming.h" |
Syntax
struct IStreamingManager
Derived Classes
IStreamingManager derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
IStreamingManager() |
ContentStreaming.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IStreamingManager() |
Virtual destructor | ContentStreaming.h |
Structs
| Name | Remarks |
|---|---|
| FSecondaryLocation |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bPendingRemoveViews | bool | Set when Tick() has been called. | ContentStreaming.h |
| CurrentViewInfos | TArray< FStreamingViewInfo > | Current collection of views that need to be taken into account for streaming. | ContentStreaming.h |
| LastingViewInfos | TArray< FStreamingViewInfo > | Views that stick around for a while. Override views are ignored if no movie is playing. | ContentStreaming.h |
| PendingViewInfos | TArray< FStreamingViewInfo > | Pending views. Emptied every frame. | ContentStreaming.h |
| SecondaryLocations | TArray< FSecondaryLocation > | Collection of view locations that will be added at the next call to AddViewInformation. | ContentStreaming.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddLevel
(
ULevel* Level |
Adds a ULevel that has already prepared StreamingData to the streaming manager. | ContentStreaming.h | |
void AddViewInformation
(
const FVector& ViewOrigin, |
Adds the passed in view information to the static array. | ContentStreaming.h | |
void AddViewLocation
(
const FVector& Location, |
Queue up view locations to the streaming system. | ContentStreaming.h | |
int32 BlockTillAllRequestsFinished
(
float TimeLimit, |
Blocks till all pending requests are fulfilled. | ContentStreaming.h | |
void CancelForcedResources() |
Cancels the timed Forced resources (i.e used the Kismet action "Stream In Textures"). | ContentStreaming.h | |
virtual bool Exec
(
UWorld* InWorld, |
Allows the streaming manager to process exec commands. | ContentStreaming.h | |
int32 GetNumViews() |
Returns the number of view infos. | ContentStreaming.h | |
virtual int32 GetNumWantingResources() |
Returns the number of resources that currently wants to be streamed in. | ContentStreaming.h | |
virtual int32 GetNumWantingResourcesID () |
Returns the current ID for GetNumWantingResources(). | ContentStreaming.h | |
const FStreamingViewInfo & GetViewInformation
(
int32 ViewIndex |
Returns the view info by the specified index. | ContentStreaming.h | |
virtual void NotifyActorDestroyed
(
AActor* Actor |
Called when a spawned actor is destroyed. | ContentStreaming.h | |
void NotifyLevelChange() |
Notifies manager of "level" change. | ContentStreaming.h | |
void NotifyLevelOffset
(
ULevel* Level, |
Notifies manager that level primitives were shifted | ContentStreaming.h | |
virtual void NotifyPrimitiveDetached
(
const UPrimitiveComponent* Primitive |
Called when a primitive is detached from an actor or another component. | ContentStreaming.h | |
virtual void NotifyPrimitiveUpdated
(
const UPrimitiveComponent* Primitive |
Called when a primitive streaming data needs to be updated. | ContentStreaming.h | |
virtual void NotifyPrimitiveUpdated_Concurrent
(
const UPrimitiveComponent* Primitive |
Called when a primitive streaming data needs to be updated in the last stage of the frame. | ContentStreaming.h | |
virtual void OnAudioStreamingParamsChanged() |
ContentStreaming.h | ||
virtual void PropagateLightingScenarioChange() |
Propagates a change to the active lighting scenario. | ContentStreaming.h | |
void RemoveLevel
(
ULevel* Level |
Removes a ULevel from the streaming manager. | ContentStreaming.h | |
void RemoveStreamingViews
(
ERemoveStreamingViews RemovalType |
Removes streaming views from the streaming manager. | ContentStreaming.h | |
void SetDisregardWorldResourcesForFrames
(
int32 NumFrames |
Don't stream world resources for the next NumFrames. | ContentStreaming.h | |
virtual int32 StreamAllResources
(
float TimeLimit |
Streams in/out all resources that wants to and blocks until it's done. | ContentStreaming.h | |
virtual void Tick
(
float DeltaTime, |
Calls UpdateResourceStreaming(), and does per-frame cleaning. Call once per frame. | ContentStreaming.h | |
void UpdateResourceStreaming
(
float DeltaTime, |
Updates streaming, taking into account all current view infos. | ContentStreaming.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetupViewInfos
(
float DeltaTime |
Sets up the CurrentViewInfos array based on PendingViewInfos, LastingViewInfos and SecondaryLocations. | ContentStreaming.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddViewInfoToArray
(
TArray< FStreamingViewInfo >& ViewInfos, |
Adds the passed in view information to the static array. | ContentStreaming.h | |
static FStreamingManagerCollection & Get() |
ContentStreaming.h | ||
static FStreamingManagerCollection * Get_Concurrent() |
Same as get but could fail if state not allocated or shutdown. | ContentStreaming.h | |
static bool HasShutdown() |
Checks if the streaming manager has already been shut down. | ContentStreaming.h | |
static void RemoveViewInfoFromArray
(
TArray< FStreamingViewInfo >& ViewInfos, |
Remove view infos with the same location from the given array. | ContentStreaming.h | |
static void Shutdown() |
ContentStreaming.h |