UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LODSyncInterface.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "UObject/Object.h"
8#include "UObject/Interface.h"
9#include "LODSyncInterface.generated.h"
10
11UINTERFACE(meta = (CannotImplementInterfaceInBlueprint), MinimalAPI)
16
17
18/* This is interface class for getting/setting LOD info by LODSyncComponent
19 *
20 * Implemented by SkeletalMeshComponent, GroomComponent
21 */
22
24{
26
27
37 virtual int32 GetDesiredSyncLOD() const = 0;
38
49 virtual int32 GetBestAvailableLOD() const = 0;
50
56 virtual int32 GetNumSyncLODs() const = 0;
57
72 virtual void SetForceStreamedLOD(int32 LODIndex) = 0;
73
83 virtual void SetForceRenderedLOD(int32 LODIndex) = 0;
84
85 UE_DEPRECATED(5.4, "SetSyncLOD is deprecated and will be removed. For the same effect, call both SetForceStreamedLOD and SetForceRenderedLOD.")
86 virtual void SetSyncLOD(int32 LODIndex)
87 {
88 SetForceStreamedLOD(LODIndex);
89 SetForceRenderedLOD(LODIndex);
90 }
91
100 virtual int32 GetForceStreamedLOD() const = 0;
101
110 virtual int32 GetForceRenderedLOD() const = 0;
111
112 UE_DEPRECATED(5.4, "GetCurrentSyncLOD has been renamed to GetForceRenderedLOD. GetCurrentSyncLOD will be removed.")
113 virtual int32 GetCurrentSyncLOD() const
114 {
115 return GetForceRenderedLOD();
116 }
117};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UINTERFACE(...)
Definition ObjectMacros.h:780
#define GENERATED_IINTERFACE_BODY(...)
Definition ObjectMacros.h:770
#define GENERATED_UINTERFACE_BODY(...)
Definition ObjectMacros.h:769
Definition LODSyncInterface.h:24
Definition Interface.h:19
Definition LODSyncInterface.h:13