2 Bug Reports, Maybe 3

NodeCanvas Forums Support 2 Bug Reports, Maybe 3

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12059
    yulaw2k
    Participant

    Everything I created worked fine. Tried to get rid of Black board variables to only have 1 editable variable in the inspector. To do that I tried to make all the other variables dynamic.

    First problem I have is iterating through list with dynamic variables.

    Step2

    It gets the list fine, you can see “List” i populated with gameobjects.
    Obj is what its being set to and it never gets assigned to anything. Which is the problem. It iterates but the current object is always nothing.

    step3

    In this image you can see I set everything back to normal black board variables. You can see the current object in the list is again never set.

    step4

    In this image you can see it is EXACTLY the same as the previous. To fix my problem I had to delete the iterator, and replace it with a new one with the exact same variables.

    The other problem I was having, is if i Created the variable from the iterator, which in this image would be “Obj” it creates a weird variable that just says GameObject like a button, If i click it it then says gameobject, but I can never assign my other actions to that variable. I have to create the variable through the blackboard or through one of the actions.

    Attachments:
    You must be logged in to view attached files.
    #12066
    Gavalakis
    Keymaster

    Hello,

    If you create the “current” variable through the Iterator inspector and the option “Create New” before the list variable is assigned, then a variable of type “System.Object” is created because the iterator list type is not yet set. That is because the iterator is possible to iterate any type of list, rather than only GameObject lists.

    Because of the nature of the Iterator to accept different list types, I would recommend that you please use a non dynamic pre-created blackboard variable, at least for the List parameter and to avoid potential pitfalls.

    Please let me know if that would work for you.
    Thank you.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.