When I do set actor location and the root is a scene component the children don’t move with it. They stay still in place.
If I make the mesh child the root though everything works as expected.
Note that I have carefully set the children’s location as relative (the default).
I have no idea why that is happening and I’d like to know as I’ve spent hours troubleshooting this and I had no idea this would work. I’m now thinking that I never want to have the sceneroot component again ever!
Yes, sorry I must have wrote this question hastily. So the problem is that the children of the sceneroot component don’t move relative to it when I use setActorLocation.
If you use setActorLocation, neither staticmesh1 nor staticmesh2 move? Is that it?
SetActorLocation moves the actor itself - root and children. To move only the children and not the root, you should select the childrens to move and use SetWorldLocation, AddLocalOffset, …
Precisely. That is my point, the default scene root moves but the children do not move when they should be moving. If I make one of those other components the root though, eg the mesh then both the root (the mesh) and its children move together.