ATestActor is a c++ file that i made
i can’t understand why TArray need * when >
i want make ATestActor type TArray but it wasn’t work
help me thank you
Because you can’t work with instances of Actors that way in Unreal. You always work with Actors as AActor* (or ATestActor* in your case), so your TArray should be TArray<ATestActor*> vec.
You also don’t want the ‘&’ in there because you’ll never be able to initialize it to reference another array properly.