UMeshComponent::RegisterLODStreamingCallback

Register a one-time callback that will be called when criteria met

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UMeshComponent::RegisterLODStreamingCallback()

USkinnedMeshComponent::RegisterLODStreamingCallback()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/MeshComponent.h

Include

#include "Components/MeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/MeshComponent.cpp

Syntax

virtual void RegisterLODStreamingCallback
(
    FLODStreamingCallback && Callback,
    int32 LODIdx,
    float TimeoutSecs,
    bool bOnStreamIn
)

Remarks

Register a one-time callback that will be called when criteria met

Parameters

Parameter

Description

Callback

LODIdx

The LOD index expected

TimeoutSecs

Timeout in seconds

bOnStreamIn

To get notified when the expected LOD is streamed in or out