I have USkeletalMeshComponent, and I want to attach Actor to this component. I am using AttachToComponent(), but it’s needed to input USceneComponent. I suppose USceneComponent is a parent for USkeletalMeshComponent. If yes, how i can convert it or use in AttachToComponent()?
USkeletalMeshComponent* SMC;
USceneComponent* Res = Cast<USceneComponent>(SMC);
Thank you)
You don’t need to convert it, the Skeletal Mesh Component is a Scene Component.
it could be resolved if include “Components/SkeletalMeshComponent.h”