UInstancedStaticMeshComponent::GetSMInstanceTransform

Attempt to get the transform of the given static mesh instance.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

ISMInstanceManager::GetSMInstanceTransform()

UInstancedStaticMeshComponent::GetSMInstanceTransform()

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

Syntax

virtual bool GetSMInstanceTransform
(
    const FSMInstanceId & InstanceId,
    FTransform & OutInstanceTransform,
    bool bWorldSpace
) const

Remarks

Attempt to get the transform of the given static mesh instance. @note The transform should be in the local space of the owner ISM component, unless bWorldSpace is set.

Returns

True if the transform was retrieved, false otherwise.