HitResult.GetActor()
returns an AActor, not AInteractableObj.
you’ll need to cast to AInteractableObj to use the Activate()
function.
InteractableObj = Cast<AInteractableObj>(HitResult.GetActor());
HitResult.GetActor()
returns an AActor, not AInteractableObj.
you’ll need to cast to AInteractableObj to use the Activate()
function.
InteractableObj = Cast<AInteractableObj>(HitResult.GetActor());