Unreal 5.1.1 - Landscapes & Custom Trace Channels

Do custom trace channels on a Landscape work for anyone else past an editor restart?

I add a custom trace channel called “Landscape”, setting the default to “Ignore”. Then I change my Landscape’s Collision Preset and set it to “Custom…” and check “Block” for my new “Landscape” trace channel. I have a Line Trace with the Trace Channel set to “Landscape” in a construction script on an Actor Blueprint. If I set the Draw Debug Type to “For Duration” and move around the object in the editor, the hits and debug strings I added appear correctly. Then I restart the editor and now the construction script’s Line Trace will no longer hit the Landscape. I can find no way to make it work again, except to delete the channel, reset everything, then add a new one which only works until the editor is restarted and stops working again.

It works fine with Static Meshes on the new trace channel after restarts, the issue seems to be specific to Landscapes.

Hey there @Obsurveyor! I tried to replicate this issue but to no avail. I’ve recreated the steps and am still getting detected hits after multiple editor restarts. This could be a bug involving traces but without being able to replicate it, might be tough to track.

image

1 Like

Thanks for checking! I think I may have figured it out. I was only setting the Collision Trace on the Landscape, not all the LandscapeStreamingProxies below it. I thought I looked at those and didn’t see the Collision Preset dropdown so I thought it came from the Landscape but I just tried again and now it’s working on the single proxy I set it on(but not the others) through a restart.

1 Like