GetAllActorsOfClass(): Cannot convert from TArray<> to TArray<> &
I am following the answers from here, but I still couldn't pass in the TArray into UGameplayStatics::GetAllActorsOfClass().
This is how my code looks like:
and the header file contains the following code:
I am still having this error popping up (Attachment provided):
What am I doing wrong this time? I am so confused.
asked Apr 06 '15 at 01:58 AM in C++ Programming
The solucion is simple. UGameplayStatics::GetAllActorsOfClass isn't a template class so you must pass it an array of AActors*
answered Jan 21 '16 at 10:51 PM
I also understant what i do can use GetAllActorsOfClass
answered May 11 '16 at 04:47 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here