Reply To: Custom foreach iterator

Forums 💬 NodeCanvas ⚙️ Support Custom foreach iterator Reply To: Custom foreach iterator

#19642
Gavalakis
Keymaster

    Hey,

    Have you checked in the blackboard that the List elements within are not null? Could it be that they are null for some reason and as such the iterator do work, but current is null because elements are null?

    By the way if the ONLY difference in your iterator is that it iterates a different list type than game bject, then you can use the attached Iterator Version2 which is possible to iterate any type of list 🙂

    Let me know about you issue in either case.