Line Trace not working with Instanced Static Mesh on Construction Script

Hi,

today I’ve upgraded my project to 4.8. Now my laser beams that use a (Blueprint) line trace no longer find a wall to hit - the trace (run in the Construction Script) just passes through the wall(s), which are created using Instanced Static Mesh components. As soon as I hit PIE, they work as usual (I refresh the trace during Event Tick to check for collision with the player). Even crazier, when removing the Event Tick call and instead only calling the line trace during Begin Play, it still doesn’t work. If I add a delay node for e.g. 0.1s after Begin Play and then call the line trace, it works.

TL;DR: Line Trace doesn’t hit ISM components during Construction Script and Begin Play. During Event Tick, it works though.

Any ideas? Thanks!

Hi anteevy,

Does this occur in a clean, blank project with no additional content or is this limited to one project? What steps do you take to reproduce this on your end?

Thanks for the reply! I managed to solve this (more or less). I created another blueprint class, added a ISM component and then copied that component into my tilemap blueprint where I need it. Somehow when I directly add a new ISM component to my tilemap blueprint, the collision is broken, but inserting one with exactly the same settings from another blueprint works.