Bug whith arrays (class)
Hello, i found a bug whith Arrays.
First, I pull out of the 'ReturnValue' (GetClass) in "FindItem" and connected 'Array' type 'Pawn' -> 'Class'.
Compiles and everything works. But if you restart UE4 you get this error. Because I try to look for 'Actor -> Class' in the array type 'Pawn -> Class'.
How to fix - it is clear.
But, you can correct that worked with the original view? This will reduce the body in bluprinte.
PS If i'll pull out of the 'agressiveFlairFriendList' (var type: Pawn -> Class) in "FindItem" and connected 'ReturnValue' (GetClass) it does not give me to connect it into the required.
Sorry if repeated.
asked Dec 06 '16 at 10:19 AM in Bug Reports
After doing a bit of digging I was able to find that this appears to be a known issue. I have provided a link to the public tracker. Please feel free to use the link provided for future updates.
Make it a great day
answered Dec 06 '16 at 03:58 PM
Rudy Q ♦♦ STAFF
I suggest you use Array.Contains. this way you can get rid of "find" and "is valid index" check this link for more info https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Arrays/ArrayNodes/
regarding the get_class function : I do not see why is it an issue. according to this link https://docs.unrealengine.com/latest/INT/API/Runtime/CoreUObject/UObject/UObjectBase/GetClass/index.html
get class returns a pointer to UCLASS so it's a uobject function and it should work for all uobject derived classes. I think the problem is how you define your array . set it to be of type Uclass reference, or Uobject.
Follow this question
Once you sign in you will be able to subscribe for any updates here