Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UInstancedStaticMeshComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/InstancedStaticMeshComponent.h |
| Include | #include "Components/InstancedStaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/InstancedStaticMesh.cpp |
virtual bool UpdateInstances
(
const TArray < int32 > & UpdateInstanceIds,
const TArray < FTransform > & UpdateInstanceTransforms,
const TArray < FTransform > & UpdateInstancePreviousTransforms,
int32 NumCustomFloats,
const TArray < float > & CustomFloatData
)
Remarks
Lightweight interface to add, remove and update instances. True on success
Parameters
| Name | Description |
|---|---|
| AddInstanceTransforms | The transforms of the new instances to add. |
| RemoveInstanceIds | The ids of the instances to remove. |
| UpdateInstanceIds | The ids of the new instances to update. |
| UpdateInstanceTransforms | The transforms of the new instances to update. |
| UpdateInstancePreviousTransforms | The transforms of the new instances to update. |