Get object type of hit actor

Hi,

My question is, how do I get the object type of a hit actor? I mean, when I use LineTraceForObjects and specify the object types to trace, let’s say I want WorldStatic and WorldDynamic. Later I want a Switch on EObjectTypeQuery, and I want different results based on the object type. The question is, how do I access this information?

Thanks for any answers in advance

You can get it from the hited Component

Thanks, works fine. I don’t really understand though why there isn’t a function that I could connect to the Switch on EObjectTypeQuery.