Cannot Cast to Actor Component from HUD Class in C++

  1. What is ActorRef and why ever you cast it to AActor? Name ActorRef suggest that this is already instance of Actor class.
  2. Why did you name the array designed to hold the components RadarActors?
  3. Unreal C++ is little different than vanilla C++, but if you don’t know how to use simple function like AActor::GetComponents, then go back to vanilla C++ tutorials/books to learn language basics.