UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Nanite::FCoarseMeshStreamingManager Class Reference

#include <NaniteCoarseMeshStreamingManager.h>

+ Inheritance diagram for Nanite::FCoarseMeshStreamingManager:

Public Member Functions

 FCoarseMeshStreamingManager ()
 
virtual void UpdateResourceStreaming (float DeltaTime, bool bProcessEverything=false) override
 
virtual int32 BlockTillAllRequestsFinished (float TimeLimit=0.0f, bool bLogResults=false) override
 
virtual void CancelForcedResources () override
 
virtual void NotifyActorDestroyed (AActor *Actor) override
 
virtual void NotifyPrimitiveDetached (const UPrimitiveComponent *Primitive) override
 
virtual void NotifyPrimitiveUpdated (const UPrimitiveComponent *Primitive) override
 
virtual void NotifyPrimitiveUpdated_Concurrent (const UPrimitiveComponent *Primitive) override
 
virtual void AddLevel (class ULevel *Level) override
 
virtual void RemoveLevel (class ULevel *Level) override
 
virtual void NotifyLevelChange () override
 
virtual void SetDisregardWorldResourcesForFrames (int32 NumFrames) override
 
virtual void NotifyLevelOffset (class ULevel *Level, const FVector &Offset) override
 
void RegisterRenderAsset (UStreamableRenderAsset *RenderAsset)
 
void UnregisterRenderAsset (UStreamableRenderAsset *RenderAsset)
 
void RequestUpdateCachedRenderState (const UStreamableRenderAsset *RenderAsset)
 
ENGINE_API void AddUsedStreamingHandles (TArray< CoarseMeshStreamingHandle > &UsedHandles)
 
ENGINE_API void UpdateResourceStates ()
 
- Public Member Functions inherited from IStreamingManager
 IStreamingManager ()
 
virtual ~IStreamingManager ()
 
virtual ENGINE_API void Tick (float DeltaTime, bool bProcessEverything=false)
 
virtual ENGINE_API int32 StreamAllResources (float TimeLimit=0.0f)
 
void RemoveStreamingViews (ERemoveStreamingViews RemovalType)
 
ENGINE_API void AddViewInformation (const FVector &ViewOrigin, float ScreenSize, float FOVScreenSize, float BoostFactor=1.0f, bool bOverrideLocation=false, float Duration=0.0f, TWeakObjectPtr< AActor > InActorToBoost=NULL, TWeakObjectPtr< UWorld > InWorld=NULL)
 
ENGINE_API void AddViewLocation (const FVector &Location, float BoostFactor=1.0f, bool bOverrideLocation=false, float Duration=0.0f)
 
virtual bool Exec (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar)
 
int32 GetNumViews () const
 
const FStreamingViewInfoGetViewInformation (int32 ViewIndex) const
 
virtual int32 GetNumWantingResources () const
 
virtual int32 GetNumWantingResourcesID () const
 
virtual void PropagateLightingScenarioChange ()
 

Additional Inherited Members

- Static Public Member Functions inherited from IStreamingManager
static ENGINE_API struct FStreamingManagerCollectionGet ()
 
static ENGINE_API struct FStreamingManagerCollectionGet_Concurrent ()
 
static ENGINE_API void Shutdown ()
 
static ENGINE_API bool HasShutdown ()
 
- Protected Member Functions inherited from IStreamingManager
void SetupViewInfos (float DeltaTime)
 
- Static Protected Member Functions inherited from IStreamingManager
static void AddViewInfoToArray (TArray< FStreamingViewInfo > &ViewInfos, const FVector &ViewOrigin, float ScreenSize, float FOVScreenSize, float BoostFactor, bool bOverrideLocation, float Duration, TWeakObjectPtr< AActor > InActorToBoost, TWeakObjectPtr< UWorld > InWorld)
 
static void RemoveViewInfoFromArray (TArray< FStreamingViewInfo > &ViewInfos, const FVector &ViewOrigin)
 
- Protected Attributes inherited from IStreamingManager
int32 NumWantingResources
 
int32 NumWantingResourcesCounter
 
- Static Protected Attributes inherited from IStreamingManager
static ENGINE_API TArray< FStreamingViewInfoCurrentViewInfos
 
static TArray< FStreamingViewInfoPendingViewInfos
 
static TArray< FStreamingViewInfoLastingViewInfos
 
static TArray< FSecondaryLocationSecondaryLocations
 
static bool bPendingRemoveViews = false
 

Constructor & Destructor Documentation

◆ FCoarseMeshStreamingManager()

Nanite::FCoarseMeshStreamingManager::FCoarseMeshStreamingManager ( )

Member Function Documentation

◆ AddLevel()

void Nanite::FCoarseMeshStreamingManager::AddLevel ( class ULevel Level)
overridevirtual

Adds a ULevel that has already prepared StreamingData to the streaming manager.

Implements IStreamingManager.

◆ AddUsedStreamingHandles()

void Nanite::FCoarseMeshStreamingManager::AddUsedStreamingHandles ( TArray< CoarseMeshStreamingHandle > &  UsedHandles)

Add the used streaming handles used by a single FSceneRenderer - called on RenderThread

◆ BlockTillAllRequestsFinished()

int32 Nanite::FCoarseMeshStreamingManager::BlockTillAllRequestsFinished ( float  TimeLimit = 0.0f,
bool  bLogResults = false 
)
overridevirtual

Blocks till all pending requests are fulfilled.

Parameters
TimeLimitOptional time limit for processing, in seconds. Specifying 0 means infinite time limit.
bLogResultsWhether to dump the results to the log.
Returns
Number of streaming requests still in flight, if the time limit was reached before they were finished.

Implements IStreamingManager.

◆ CancelForcedResources()

void Nanite::FCoarseMeshStreamingManager::CancelForcedResources ( )
overridevirtual

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

Implements IStreamingManager.

◆ NotifyActorDestroyed()

void Nanite::FCoarseMeshStreamingManager::NotifyActorDestroyed ( AActor Actor)
overridevirtual

Called when a spawned actor is destroyed.

Reimplemented from IStreamingManager.

◆ NotifyLevelChange()

virtual void Nanite::FCoarseMeshStreamingManager::NotifyLevelChange ( )
inlineoverridevirtual

Notifies manager of "level" change.

Implements IStreamingManager.

◆ NotifyLevelOffset()

virtual void Nanite::FCoarseMeshStreamingManager::NotifyLevelOffset ( class ULevel Level,
const FVector Offset 
)
inlineoverridevirtual

Notifies manager that level primitives were shifted

Implements IStreamingManager.

◆ NotifyPrimitiveDetached()

void Nanite::FCoarseMeshStreamingManager::NotifyPrimitiveDetached ( const UPrimitiveComponent *  Primitive)
overridevirtual

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

Reimplemented from IStreamingManager.

◆ NotifyPrimitiveUpdated()

void Nanite::FCoarseMeshStreamingManager::NotifyPrimitiveUpdated ( const UPrimitiveComponent *  Primitive)
overridevirtual

Called when a primitive streaming data needs to be updated.

Reimplemented from IStreamingManager.

◆ NotifyPrimitiveUpdated_Concurrent()

void Nanite::FCoarseMeshStreamingManager::NotifyPrimitiveUpdated_Concurrent ( const UPrimitiveComponent *  Primitive)
overridevirtual

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

Reimplemented from IStreamingManager.

◆ RegisterRenderAsset()

void Nanite::FCoarseMeshStreamingManager::RegisterRenderAsset ( UStreamableRenderAsset RenderAsset)

Register/Unregister streamable nanite coarse mesh static assets

◆ RemoveLevel()

void Nanite::FCoarseMeshStreamingManager::RemoveLevel ( class ULevel Level)
overridevirtual

Removes a ULevel from the streaming manager.

Implements IStreamingManager.

◆ RequestUpdateCachedRenderState()

void Nanite::FCoarseMeshStreamingManager::RequestUpdateCachedRenderState ( const UStreamableRenderAsset RenderAsset)

Request rebuild of the cached render state for the given handle

◆ SetDisregardWorldResourcesForFrames()

virtual void Nanite::FCoarseMeshStreamingManager::SetDisregardWorldResourcesForFrames ( int32  NumFrames)
inlineoverridevirtual

Don't stream world resources for the next NumFrames.

Implements IStreamingManager.

◆ UnregisterRenderAsset()

void Nanite::FCoarseMeshStreamingManager::UnregisterRenderAsset ( UStreamableRenderAsset RenderAsset)

◆ UpdateResourceStates()

void Nanite::FCoarseMeshStreamingManager::UpdateResourceStates ( )

Process all the used streaming handles used by all the scene renderers and find out the new state of the registered resources - called on RenderThread

◆ UpdateResourceStreaming()

void Nanite::FCoarseMeshStreamingManager::UpdateResourceStreaming ( float  DeltaTime,
bool  bProcessEverything = false 
)
overridevirtual

Updates streaming, taking into account all current view infos. Can be called multiple times per frame.

Parameters
DeltaTimeTime since last call in seconds
bProcessEverything[opt] If true, process all resources with no throttling limits

Implements IStreamingManager.


The documentation for this class was generated from the following files: