75 static_assert(TIsDerivedFrom<T, AActor>::IsDerived,
"T must derive from AActor");
82 TArray<AActor*> FoundActors;
83 UGameplayStatics::GetAllActorsOfClass(World, T::StaticClass(), FoundActors);
85 for (AActor* Actor : FoundActors)
87 if (T* Casted = Cast<T>(Actor))