Crash on Geometry Brush with FHitResult
I'm trying to some simple LineTrace stuff so I can
I'm having a trouble with Step 2. If the object IS one of the classes I'm looking for, it registers properly and all that. If, however, I'm looking at a Geometry Brush object, UE4 crashes immediately.
The culprit line is as follows:
This conditional crashes the game, as does the line
I assume therefore that the issue is with HitResult.Actor and geometry brushes. What work around do I need to use?
Found the solution. Since geometry brushes have no "root actor", and only mesh components, getting the actor from a LineTrace returns a Null. When you try to get the name of a Null and print it, things go downhill.
Instead, if you might be looking at geometry brushes in your level, you might want to check if what you're looking at has an actor first:
answered Dec 13 '15 at 01:25 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here