Referencing an ASkeletalMeshActor

Im trying to figure out how to recognize (by linetracing) an ASkeletalMeshActor, but im still trying to wrap my head around things. I do understand that ASkeletalMeshActor is just an AActor with a USkeletalMeshComponent. But is there a way I can cache the ASkeletalMeshActor? TIA

You would cast the actor to ASkeletalMeshActor; if the cast returned nullptr then it’s not a ASkeletalMeshActor otherwise it is.

This is checking the specific type not whether or not the actor has a USkeletalMeshComponent, if you want to do that then use FindComponentByClass.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms