I have a trace that returns an FHitResult but im having a lot of problems actually using that information. I want to attempt a cast on the hit component to a destructible component however I can find any way to convert the hit.component from TWeakObjectPtr to an actual UPrimitiveComponent that I can work with. The following code returns this error “‘Cast’ : none of the 3 overloads could convert all the argument types” Cast(hit.Component)
I get a similar error for any other converting techniques that I have tried but I feel like im missing something really obvious. Any help is appreciated