RealDocs

UKismetStringLibrary::Conv_MatrixToString

function Engine Blueprint Since unknown
#include "Kismet/KismetStringLibrary.h"
Access: public Specifiers: staticBlueprintPureBlueprintAutocast

Description

Converts a 4x4 transformation matrix to a multi-line string dump of all sixteen components. Intended for debug logging, not display to players.

Caveats & Gotchas

  • The output spans four lines (one per matrix row) and is verbose — printing it to screen with PrintString will overwhelm the HUD; prefer UE_LOG or a debug file dump.
  • Blueprint graphs rarely expose FMatrix directly since most Blueprint-facing transform work uses FTransform; you'll usually only reach this node from a matrix authored or computed in C++.

Signature

static FString Conv_MatrixToString(const FMatrix& InMatrix)

Parameters

Name Type Description Default
InMatrix const FMatrix& The 4x4 matrix to convert.

Return Type

FString

Example

Dump a bone matrix for debugging C++
FMatrix BoneMatrix = GetBoneMatrix(BoneName);
FString MatrixText = UKismetStringLibrary::Conv_MatrixToString(BoneMatrix);
UE_LOG(LogTemp, Log, TEXT("Bone matrix:\n%s"), *MatrixText);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.