ReferenceVerse

Get Transform

get transform

Updated
Watch the Knot — get-transform in ~90 seconds.

One press on the lagoon boulder, and the sunken treasure chest glides smoothly across the turquoise water to meet you.

Every device in UEFN knows exactly where it sits in the world, and GetTransform grabs that full position, rotation, and scale data in one snap.

We subscribe to the pad, call GetTransform to capture its exact coordinates, and pass that transform straight into MoveTo to slide the chest over.

Reach for GetTransform whenever you need one object to perfectly mimic or move to another object's exact placement.

lagoon_mover := class(creative_device):
    @editable
    Chest : creative_device = creative_device{}
    @editable
    Pad : button_device = button_device{}
    OnPressed(Agent : ?agent) : void =
        Xform := Pad.GetTransform()
        spawn{Chest.MoveTo(Xform, 2.0)}
    OnBegin<override>()<suspends>:void =
        Pad.InteractedWithEvent.Subscribe(OnPressed)

Build your own lesson with get-transform

Generate a personalized, compile-checked lesson grounded in this exact reference.

Build a lesson →