Naming Task Action

NodeCanvas Forums Support Naming Task Action

Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16826
    veryhotshark
    Participant

    Hello Is there a way to override anĀ  Action Task Name like in Unreal Behaviour Tree?
    I know there is a Name Attribute but I would need to give a name in Script.
    I would like to name my task varations like Attack_Jump, Attack_Jump_Long etc and have it visible on Task Miniature

    Attachments:
    You must be logged in to view attached files.
    #16830
    zsoik
    Participant

    Nodes also have a overridable name property, maybe that’s what you’re looking for?

    #16833
    veryhotshark
    Participant

    Unfortunately no, because I have a generic Task called CastSkill and insid Behaviour Tree I can choose many “implementations” of skill.
    Using Name Attribute I can only name it inside script and it would be the same for all Task.
    I would like to have an option to name them individually like you can comment or Tag on the Task

    #16838
    zsoik
    Participant

    Then you’ll probably have to implement your node in a way that you can set your custom name from the inspector and then just pass that back through the name property, e.g.

    #16845
    Gavalakis
    Keymaster

    Hello,

    Thanks @zsoik. That is indeed correct. Names are set code-wise and can not be changed, however you can override the ‘info’ property of tasks to return some useful info that is displayed within the nodes instead of the name if the info property is overridden (this is what most included tasks do).

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

    #16849
    veryhotshark
    Participant

    Hi I tried to do it, but It seems like the Task name property cant be overriden because it does not derive from BTNode. I just see that it can be overriden by [Name] Attribute

    #16852
    Gavalakis
    Keymaster

    Hi. For Tasks you have to override the “info” protected property.

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

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