Attached actor to component in construction script moves twice the distance it should when I move new parent of it

Hi. I attach Text Render Actor to child component of BP actor in construction script. When I move the whole BP it works fine. If I move the child component(new parent of Text Render), attached actor(Text Render) moves double the distance of the child component relative to center of BP actor.

Here is video if I couldn’t explain it: https://www…com/watch?v=lLLQVo45Y-I&feature=youtu.be

First I posted this at Blueprint Scripting section but I guess this is not normal behaviour after trying everything I could. Please help with this problem as my 2-3 months of work is stuck because of this. And this is last piece of puzzle :frowning:

Thanks!

Hi Nicat,

  • Does this occur in a clean, blank project with no additional content or is it limited to one project?
  • What steps can I take to reproduce this in my end?
  • In your constructions script at the attach actor to component node, can you try setting it to “keep relative position” or “snap to actor” options and see if this achieves the desired outcome?
  • Can you show me a screenshot of your construction script?

Hello,

This bug happens with rotation and scale as well, not only location.

  • Yes this occurs in a clean blank project.

  • In the video I tried to show everything but guess I failed. Here are steps:

  1. Create new BP Actor.
  2. Add StaticMesh Component and an editable actor variable.
  3. In Construction Script add AttachActorToComponent node. Connect actor variable to Target, StaticMesh to root as shown in video.
  4. Add BP Actor and TextRenderActor or PointLight -whatever you want- to editor.
  5. In details panel of BP Actor using picker choose TextRenderActor -or whatever you added in previous step-.
  6. And finally move ONLY! StaticMesh Component of BP Actor, NOT whole BP Actor.
  • “snap to actor” works normally, the other ones does something weird. I think “keep relative position” aslo works normally, because it takes its relative location to world center and applies it to relative location to StaticMesh Component when it gets attached to it.

  • Screenshot of Construction Script:

Thanks!

Hi Nicat,

I was able to reproduce this on my end and have entered a bug report, UE-23987, to be assessed by the development staff.