Why are all casts but one failing?
Casting to MyPiece1 never fails, but will always fail when casting to other actors of the same class (like MyPiece2 and MyPiece3 shown).
asked Apr 04 '19 at 04:25 AM in Using UE4
You're casting the same thing every time ( the same array element ), it can only be one type of thing. So the first cast works ( because it is of type MyPiece1 ), but the others fail.
What are you trying to do?
( For this to work, you would need the 'MyPiece's to be sub classes of each other... )
Follow this question
Once you sign in you will be able to subscribe for any updates here