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 

                     }

 }

댓글

이 블로그의 인기 게시물

UE get player controller

Raytracing

Shader informations nice blog ~ ~