Editor crashes if i use ->ActorHasTag()


 if (ActorHit && ActorHit->ActorHasTag(FName(TEXT("Test")))){  
//...then do someting  
}

Try this. If ActorHit is null, trying to run code from it will crash. The “ActorHit &&” before ensures that ActorHit exists first, before trying to see it’s tag.