Good evening … I’m doing a puzzle game (Farm Hero style) and I’m having a problem swapping a staticmesh with another staticmesh that was preached by the player. How do I move a staticmesh ??? (It would be same to change a position icon in the taskbar of windows 10 …)
If you just want to swap them, store the world location of objectB in a variable, then use the teleport actor function on objectB, with objectA’s world location. Then use the teleport actor function again on objectA with the stored variable location.
GetActorWorldLocation(ObjectB) to VariableA → TeleportActor(ObjectB) to GetActorWorldLocation(ObjectA) → TeleportActor(ObjectA) to VariableA.
I threw together a quick example project that just swaps the position of the two most recently clicked boxes (or clears them if you click the Cancel box)