Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UHierarchicalInstancedStaticMesh-
- UInstancedStaticMeshComponent::UpdateInstanceTransform()
- UHierarchicalInstancedStaticMeshComponent::UpdateInstanceTransform()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/HierarchicalInstancedStaticMeshComponent.h |
| Include | #include "Components/HierarchicalInstancedStaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/HierarchicalInstancedStaticMesh.cpp |
virtual bool UpdateInstanceTransform
&40;
int32 InstanceIndex,
const FTransform & NewInstanceTransform,
bool bWorldSpace,
bool bMarkRenderStateDirty,
bool bTeleport
&41;
Remarks
Update the transform for the instance specified. True on success.
Parameters
| Name | Description |
|---|---|
| InstanceIndex | The index of the instance to update |
| NewInstanceTransform | The new transform |
| bWorldSpace | If true, the new transform is interpreted as a World Space transform, otherwise it is interpreted as Local Space |
| bMarkRenderStateDirty | If true, the change should be visible immediately. If you are updating many instances you should only set this to true for the last instance. |
| bTeleport | Whether or not the instance's physics should be moved normally, or teleported (moved instantly, ignoring velocity). |