{ }Blueprint → C++

Unreal Engine 5 · Blueprint → C++

Make Transform in Unreal Engine 5 C++UE Docs

The Make Transform Blueprint node builds an FTransform from location, rotation, and scale. In C++ use the constructor FTransform T(Rotation, Location, Scale);.

Blueprint node & C++ equivalent

C++
FTransform T(Rotation, Location, Scale);

What does the Make Transform node do?

Make Transform packs a translation (FVector), a rotation (FRotator), and a 3D scale (FVector) into a single FTransform struct. That struct is what functions like SetActorTransform, SpawnActor, and AttachToComponent expect.

Combining the three components into one value keeps spawn and placement code compact and avoids passing the parts around separately.

The C++ equivalent

Use the constructor FTransform T(Rotation, Location, Scale);. Note the argument order: rotation comes first, then location, then scale, which differs from the Blueprint pin order of location, rotation, scale.

The rotation parameter accepts an FRotator or an FQuat. If you only need location, FTransform(Location) is valid and defaults rotation to identity and scale to one.

Common mistakes

The most frequent bug is swapping location and rotation because the C++ constructor order does not match the Blueprint node order. Always pass Rotation first.

If you leave scale out, it defaults to (1,1,1). Passing a zero scale by accident produces a degenerate transform that can make meshes vanish.

Frequently asked questions

How do I create an FTransform in UE5 C++?+

Call the constructor FTransform T(Rotation, Location, Scale);. The rotation can be an FRotator or FQuat, and you can omit scale to default it to (1,1,1).

Why is the FTransform constructor order different from Blueprint?+

The Blueprint Make Transform node orders pins as location, rotation, scale, but the C++ FTransform constructor takes rotation, location, scale. Pass rotation first to avoid swapping translation and rotation.

Related Math nodes

View all Math nodes →