UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HLODInstancedStaticMeshComponent.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
"
6
#include "
Components/InstancedStaticMeshComponent.h
"
7
#include "
ISMPartition/ISMComponentBatcher.h
"
8
#include "
ISMPartition/ISMComponentDescriptor.h
"
9
#include "HLODInstancedStaticMeshComponent.generated.h"
10
11
12
UCLASS
(
HideDropDown
,
NotPlaceable
, MinimalAPI)
13
class
UHLODInstancedStaticMeshComponent
:
public
UInstancedStaticMeshComponent
14
{
15
GENERATED_UCLASS_BODY
()
16
17
public
:
18
#if WITH_EDITOR
19
ENGINE_API
virtual
TUniquePtr<FISMComponentDescriptor>
AllocateISMComponentDescriptor
()
const
;
20
21
typedef
TArray<FISMComponentBatcher::FComponentToInstancesMapping>
FSourceComponentsToInstancesMap
;
22
23
ENGINE_API
void
SetSourceComponentsToInstancesMap
(
FSourceComponentsToInstancesMap
&&
InSourceComponentsToInstances
);
24
ENGINE_API
const
FSourceComponentsToInstancesMap
&
GetSourceComponentsToInstancesMap
()
const
;
25
26
private
:
27
// Transient data, only available during HLOD builds
28
FSourceComponentsToInstancesMap
SourceComponentsToInstances
;
29
#endif
30
};
31
32
33
// ISM descriptor class based on FISMComponentDescriptor
34
USTRUCT
()
35
struct
FHLODISMComponentDescriptor
:
public
FISMComponentDescriptor
36
{
37
GENERATED_BODY
()
38
39
#if WITH_EDITOR
40
ENGINE_API
FHLODISMComponentDescriptor
();
41
42
ENGINE_API
virtual
void
InitFrom(
const
UStaticMeshComponent*
Component
,
bool
bInitBodyInstance
=
true
)
override
;
43
ENGINE_API
virtual
void
InitComponent(
UInstancedStaticMeshComponent
* ISMComponent)
const override
;
44
#endif
45
};
EAnimSyncGroupScope::Component
@ Component
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ISMComponentBatcher.h
ISMComponentDescriptor.h
InstancedStaticMeshComponent.h
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
GENERATED_UCLASS_BODY
#define GENERATED_UCLASS_BODY(...)
Definition
ObjectMacros.h:768
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
USTRUCT
#define USTRUCT(...)
Definition
ObjectMacros.h:746
TArray
Definition
Array.h:670
TUniquePtr
Definition
UniquePtr.h:107
UHLODInstancedStaticMeshComponent
Definition
HLODInstancedStaticMeshComponent.h:14
UInstancedStaticMeshComponent
Definition
InstancedStaticMeshComponent.h:158
FHLODISMComponentDescriptor
Definition
HLODInstancedStaticMeshComponent.h:36
FISMComponentDescriptor
Definition
ISMComponentDescriptor.h:257
Engine
Source
Runtime
Engine
Public
WorldPartition
HLOD
HLODInstancedStaticMeshComponent.h
Generated by
1.9.8