UE Cast and set reference
This post is about how to cast and set reference in UE C++.
void AActor::NotifyActorBeginOverlap(AActor* OtherActor)
{ AProjectile* Projectile = Cast<AProjectile>(OtherActor);
if (Projectile) {
// Damage Process
}
}
This post is about how to cast and set reference in UE C++.
void AActor::NotifyActorBeginOverlap(AActor* OtherActor)
{ AProjectile* Projectile = Cast<AProjectile>(OtherActor);
if (Projectile) {
// Damage Process
}
}
댓글
댓글 쓰기