Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UStaticMeshComponent
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void RegisterLODStreamingCallback
(
FLODStreamingCallback&& Callback, |
Register a one-time callback that will be called when criteria met | Components/StaticMeshComponent.h | |
virtual void RegisterLODStreamingCallback
(
FLODStreamingCallback&& CallbackStreamingStart, |
Register a one-time callback that will be called when streaming starts or ends. | Components/StaticMeshComponent.h |
RegisterLODStreamingCallback(FLODStreamingCallback &&, int32, float, bool)
Description
Register a one-time callback that will be called when criteria met
| Name | RegisterLODStreamingCallback |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/StaticMeshComponent.h |
| Include Path | #include "Components/StaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/StaticMeshComponent.cpp |
virtual void RegisterLODStreamingCallback
(
FLODStreamingCallback && Callback,
int32 LODIdx,
float TimeoutSecs,
bool bOnStreamIn
)
Parameters
| Name | Remarks |
|---|---|
| Callback | |
| LODIdx | The LOD index expected. Specify -1 for the MinLOD. |
| TimeoutSecs | Timeout in seconds |
| bOnStreamIn | To get notified when the expected LOD is streamed in or out |
RegisterLODStreamingCallback(FLODStreamingCallback &&, FLODStreamingCallback &&, float, float)
Description
Register a one-time callback that will be called when streaming starts or ends.
| Name | RegisterLODStreamingCallback |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/StaticMeshComponent.h |
| Include Path | #include "Components/StaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/StaticMeshComponent.cpp |
virtual void RegisterLODStreamingCallback
(
FLODStreamingCallback && CallbackStreamingStart,
FLODStreamingCallback && CallbackStreamingDone,
float TimeoutStartSecs,
float TimeoutDoneSecs
)
Parameters
| Name | Remarks |
|---|---|
| CallbackStreamingStart | The callback to notify when streaming new LODs in begins. The callback will not always be called if the asset is not streamable, or the asset or component is unloaded. |
| CallbackStreamingDone | The callback to notify when streaming is done. The callback will not be called if the start timeout expired. |
| TimeoutStartSecs | Timeout for streaming to start, in seconds |
| TimeoutDoneSecs | Timeout for streaming to end, in seconds |