AgentType Attribute missing??

NodeCanvas Forums Custom Nodes & Tasks AgentType Attribute missing??

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12732
    talthilas
    Participant

    Hi,

    I upgraded to the latest version of NodeCanvas today, and have noticed that the AgentType attribute no longer works. My code no longer knows what the AgentType attribute is which leaves me to think it was removed from NodeCanvas. Is this true?

    #12733
    Gavalakis
    Keymaster

    Hello,

    The [AgentType] attribute (which was only required for interface types) is indeed removed in v2.7. That is because it is now possible to use the generic version of tasks for specifying an interface type too.

    So for example, this task:

    Now becomes:

    The main benefit is that the ‘.agent’ property will now already be an IMyInterface type and no longer requires casting.

    Let me know if that works for you.
    Thanks.

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

    #12734
    talthilas
    Participant

    Hi,

    Yes I did work out that you can use the generic version of ActionTask to give the same behavior as you have a little note under the AgentType section in your documentation on task attributes.

    Can you please ensure you record changes like this in your changelog, so that we have some notice when you delete pieces of code that have been in existence for a while that may break our projects? At least update the AgentType section in the documentation. I wasted over an hour thinking that NodeCanvas had not imported into the project properly, or there was a corrupt file somewhere.

    Thanks.

    #12737
    Gavalakis
    Keymaster

    Hello again,

    I am sorry for the inconvenience this change might have caused. I have updated the documentation in the AgentType section.
    Thank you.

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

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