RealDocs

UKismetMathLibrary::Conv_TransformToMatrix

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Converts an FTransform into an FMatrix, including scale. In Blueprint this appears as an autocast node (compact node title "->") wherever an FMatrix pin is expected and an FTransform is supplied.

Caveats & Gotchas

  • Because BlueprintAutocast is set, connecting a Transform pin to a Matrix pin in the graph editor implicitly inserts this conversion — you won't see an explicit node unless you place it manually.
  • FMatrix has no built-in Blueprint-exposed math library of its own; this conversion mainly exists as a stepping stone for functions like Transform_Determinant, or for interop with matrix-based C++ code.

Signature

static FMatrix Conv_TransformToMatrix(const FTransform& Transform)

Parameters

Name Type Description Default
Transform const FTransform& The transform to convert.

Return Type

FMatrix

Example

Convert a transform to a matrix for further use C++
FMatrix TransformMatrix = UKismetMathLibrary::Conv_TransformToMatrix(GetActorTransform());

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.