Construction Script Breaks Actor in Standalone but not in PIE

I have a component that contains some statistical information for the person editing the level. I provide a normal arrow and some text which is intended to be hidden in game but always visible in the editor to ensure we’re placing items close enough together to be reachable.

The construction script doesn’t create anything new it merely sets rotation and text values on the components in my actor. This works fine in both edit mode, as well as PIE. Running in standalone (mobile or desktop) breaks the component, sending it to world zero.

If there were a pragma that I could switch on in my construction script this would probably resolve the issue but I haven’t had any luck searching the documentation. Therefore bug.

I’ve included screenshots to demonstrate that when I break the connection in my construction script; the game plays fine and actor positions are not mangled. (Of what little value they might be.)

The component configurations:

The breaking case:

The workaround (which isn’t really acceptable because it disables the stats output in the editor.)

Also of note here: I attempted to cheat the “is game running in standalone” by testing for player pawn valid. It appears however that construction scripts are run before the player is instantiated so that doesn’t work. :confused: Gorm.

Hello,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes.

If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, please submit a new report for it.

Thank you