UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FInstancedStaticMeshComponentInstanceData Struct Reference

#include <InstancedStaticMeshComponent.h>

+ Inheritance diagram for FInstancedStaticMeshComponentInstanceData:

Public Member Functions

 FInstancedStaticMeshComponentInstanceData ()=default
 
 FInstancedStaticMeshComponentInstanceData (const UInstancedStaticMeshComponent *InComponent)
 
virtual ~FInstancedStaticMeshComponentInstanceData ()=default
 
virtual bool ContainsData () const override
 
virtual void ApplyToComponent (UActorComponent *Component, const ECacheApplyPhase CacheApplyPhase) override
 
virtual void AddReferencedObjects (FReferenceCollector &Collector) override
 
- Public Member Functions inherited from FSceneComponentInstanceData
ENGINE_API FSceneComponentInstanceData ()
 
ENGINE_API FSceneComponentInstanceData (const USceneComponent *SourceComponent)
 
virtual ENGINE_API ~FSceneComponentInstanceData ()
 
virtual ENGINE_API void FindAndReplaceInstances (const TMap< UObject *, UObject * > &OldToNewInstanceMap) override
 
- Public Member Functions inherited from FActorComponentInstanceData
ENGINE_API FActorComponentInstanceData ()
 
ENGINE_API FActorComponentInstanceData (const UActorComponent *SourceComponent)
 
ENGINE_API bool MatchesComponent (const UActorComponent *Component, const UObject *ComponentTemplate) const
 
const UClassGetComponentClass () const
 
const UObjectGetComponentTemplate () const
 
- Public Member Functions inherited from FInstanceCacheDataBase
virtual ENGINE_API ~FInstanceCacheDataBase ()
 
UObjectGetUniqueTransientPackage ()
 
ENGINE_API UObjectGetUniqueTransientObject (UClass *Class)
 
const TArray< FDataCacheDuplicatedObjectData > & GetDuplicatedObjects () const
 
const TArray< TObjectPtr< UObject > > & GetReferencedObjects () const
 
const TArray< uint8 > & GetSavedProperties () const
 

Public Attributes

TObjectPtr< UStaticMeshStaticMesh = nullptr
 
FInstancedStaticMeshLightMapInstanceData CachedStaticLighting
 
TArray< FInstancedStaticMeshInstanceDataPerInstanceSMData
 
TBitArray SelectedInstances
 
int32 InstancingRandomSeed = 0
 
TArray< FInstancedStaticMeshRandomSeedAdditionalRandomSeeds
 
bool bHasPerInstanceHitProxies = false
 
- Public Attributes inherited from FSceneComponentInstanceData
TMap< TObjectPtr< USceneComponent >, FTransformAttachedInstanceComponents
 

Additional Inherited Members

- Protected Attributes inherited from FActorComponentInstanceData
TObjectPtr< const UObjectSourceComponentTemplate
 
EComponentCreationMethod SourceComponentCreationMethod
 
int32 SourceComponentTypeSerializedIndex
 
- Protected Attributes inherited from FInstanceCacheDataBase
TArray< uint8SavedProperties
 

Detailed Description

Helper class used to preserve lighting/selection state across blueprint reinstancing

Constructor & Destructor Documentation

◆ FInstancedStaticMeshComponentInstanceData() [1/2]

FInstancedStaticMeshComponentInstanceData::FInstancedStaticMeshComponentInstanceData ( )
default

◆ FInstancedStaticMeshComponentInstanceData() [2/2]

FInstancedStaticMeshComponentInstanceData::FInstancedStaticMeshComponentInstanceData ( const UInstancedStaticMeshComponent InComponent)
inline

◆ ~FInstancedStaticMeshComponentInstanceData()

virtual FInstancedStaticMeshComponentInstanceData::~FInstancedStaticMeshComponentInstanceData ( )
virtualdefault

Member Function Documentation

◆ AddReferencedObjects()

virtual void FInstancedStaticMeshComponentInstanceData::AddReferencedObjects ( FReferenceCollector Collector)
inlineoverridevirtual

Reimplemented from FSceneComponentInstanceData.

◆ ApplyToComponent()

virtual void FInstancedStaticMeshComponentInstanceData::ApplyToComponent ( UActorComponent Component,
const ECacheApplyPhase  CacheApplyPhase 
)
inlineoverridevirtual

Applies this component instance data to the supplied component

Reimplemented from FSceneComponentInstanceData.

◆ ContainsData()

virtual bool FInstancedStaticMeshComponentInstanceData::ContainsData ( ) const
inlineoverridevirtual

Determines if any instance data was actually saved.

Reimplemented from FSceneComponentInstanceData.

Member Data Documentation

◆ AdditionalRandomSeeds

TArray<FInstancedStaticMeshRandomSeed> FInstancedStaticMeshComponentInstanceData::AdditionalRandomSeeds

◆ bHasPerInstanceHitProxies

bool FInstancedStaticMeshComponentInstanceData::bHasPerInstanceHitProxies = false

◆ CachedStaticLighting

FInstancedStaticMeshLightMapInstanceData FInstancedStaticMeshComponentInstanceData::CachedStaticLighting

◆ InstancingRandomSeed

int32 FInstancedStaticMeshComponentInstanceData::InstancingRandomSeed = 0

◆ PerInstanceSMData

TArray<FInstancedStaticMeshInstanceData> FInstancedStaticMeshComponentInstanceData::PerInstanceSMData

◆ SelectedInstances

TBitArray FInstancedStaticMeshComponentInstanceData::SelectedInstances

The cached selected instances

◆ StaticMesh

TObjectPtr<UStaticMesh> FInstancedStaticMeshComponentInstanceData::StaticMesh = nullptr

Mesh being used by component


The documentation for this struct was generated from the following file: