Tag
Unreal
void APlayerChar::NotifyActorBeginOverlap(AActor* OtherActor) { Super::NotifyActorBeginOverlap(OtherActor);
if(GetCapsuleComponet->ComponentHasTag("OtherComp")) UE_LOG(LogTemp, Display, TEXT("OtherComp has Overlap the Player Capsule")); }
Unity
Override void OnTriggerEnter(Collider other) => if (other.gameObject.CompareTag("OtherObj")) Debug.Log("the Player Capsule has Trigger OtherObj");
Comments
Post a Comment