can someone tell me the differences between:
TArray<AActor*> CollectedActors; CollectionSphere->GetOverlappingActors(CollectedActors, TSubclassOf<APickup>()); //(1) APickup* const TempPickup = static_cast<APickup*>(CollectedActors*); //(2) APickup* const TestPickup = Cast<APickup>(CollectedActors*);
It should be the same; isnt it?
with (1) I got an UE-Editor crash.
with (2) It works.