InstancedStaticMeshComponent-UpdateInstanceTransform(int_Transform_bool_bool_bool).md

April 18, 2021 ยท View on GitHub

UnrealEngine.Framework.InstancedStaticMeshComponent

InstancedStaticMeshComponent.UpdateInstanceTransform(int, UnrealEngine.Framework.Transform, bool, bool, bool) Method

Updates the transform for the specified instance

public bool UpdateInstanceTransform(int instanceIndex, in UnrealEngine.Framework.Transform instanceTransform, bool worldSpace=false, bool markRenderStateDirty=false, bool teleport=false);

Parameters

instanceIndex System.Int32
The index of the instance to update

instanceTransform Transform
The new transform to apply

worldSpace System.Boolean
If true, the new transform is interpreted as a world space transform, otherwise it is interpreted as local space

markRenderStateDirty System.Boolean
If the render state is marked as dirty the change should be visible immediately, consider setting it to true only during the update of the last instance in a batch

teleport System.Boolean
Whether the instance's physics should be moved normally, or teleported (moved instantly, ignoring velocity)

Returns

System.Boolean
true if successful