Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UStreamableRenderAsset
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void RegisterMipLevelChangeCallback
(
UPrimitiveComponent* Component, |
Register a callback to get notified when a certain mip or LOD is resident or evicted. | Engine/StreamableRenderAsset.h | |
void RegisterMipLevelChangeCallback
(
UPrimitiveComponent* Component, |
Register a set of callbacks to get notified when new mips/LODs start streaming in and when streaming is complete. | Engine/StreamableRenderAsset.h |
RegisterMipLevelChangeCallback(UPrimitiveComponent *, int32, float, bool, FLODStreamingCallback &&)
Description
Register a callback to get notified when a certain mip or LOD is resident or evicted.
| Name | RegisterMipLevelChangeCallback |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/StreamableRenderAsset.h |
| Include Path | #include "Engine/StreamableRenderAsset.h" |
| Source | /Engine/Source/Runtime/Engine/Private/StreamableRenderAsset.cpp |
void RegisterMipLevelChangeCallback
(
UPrimitiveComponent * Component,
int32 LODIdx,
float TimeoutSecs,
bool bOnStreamIn,
FLODStreamingCallback && Callback
)
Parameters
| Name | Remarks |
|---|---|
| Component | The context component |
| LODIdx | The mip or LOD level to wait for |
| TimeoutSecs | Timeout in seconds |
| bOnStreamIn | Whether to get notified when the specified level is resident or evicted |
| Callback | The callback to call |
RegisterMipLevelChangeCallback(UPrimitiveComponent *, float, FLODStreamingCallback &&, float, FLODStreamingCallback &&)
Description
Register a set of callbacks to get notified when new mips/LODs start streaming in and when streaming is complete. If the target mips/LODs are already streamed in, CallbackStreamingDone is called immediately and CallbackStreamingStart is not called.
| Name | RegisterMipLevelChangeCallback |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/StreamableRenderAsset.h |
| Include Path | #include "Engine/StreamableRenderAsset.h" |
| Source | /Engine/Source/Runtime/Engine/Private/StreamableRenderAsset.cpp |
void RegisterMipLevelChangeCallback
(
UPrimitiveComponent * Component,
float TimeoutStartSecs,
FLODStreamingCallback && CallbackStreamingStart,
float TimeoutDoneSecs,
FLODStreamingCallback && CallbackStreamingDone
)
Parameters
| Name | Remarks |
|---|---|
| Component | The context component |
| TimeoutStartSecs | Timeout in seconds for streaming to start |
| CallbackStreamingStart | The callback to call when the streamer begins changing LOD/mip target. This callback will not be called if the asset is not streamable, or is already streamed in |
| TimeoutDoneSecs | Timeout in seconds for streaming to be done |
| CallbackStreamingDone | The callback to call when the desired mip/LOD level has been streamed in or when the timeout period has elapsed. This callback will not be called if the start timeout has expired. |