How to fix this Meaningless Access Error?

I am having trouble with an access error occurring in the Hit Component included in the Hit Result.

Since this is from On Component Hit, I don’t think this will normally be empty, but if it hits a geometry collection, this error will occur.
Fortunately, I don’t use this value at all, so it’s not a problem, but it’s annoying that the error always occurs.

Is there a way to remove or just ignore the error from this struct?

Check if it’s Valid first.

On the other hand, unused pins do not generate errors / warnings. You may need to post script + the actual error message.

There is a small correction. The error was occurring not from the On Hit Component, but from the line trace that was executed afterwards.

I tried to use Is Valid to assign a different value if the value is invalid, but an error occurs.
So the error is probably coming from Is Valid.
Also, when I do a Print String, it just prints an empty line. These only happens with Geometry Collections, other objects print the component name just fine.


This is a pure node which is always evaluated and does not block execution. I meant this:


However, if we do not hit anything, there can be no component to deal with, right? So I’d probably just:


Which reminds me that I forgot to post it in the other thread of yours:

It was about performing an additional trace, since collision did not return enough data to get a face, afair. Admittedly, there’s probably more ways to handle it.

The branch could not be used because the Geometry Collection returned a Blocking Hit…But that Is Valid function worked so the problem was solved.

Geometry collections seem to be something unique. That’s why I always get confused.

1 Like

Quite new to working with it, too. It surely is quirky.