Naming Task Action

Forums 💬 NodeCanvas ⚙️ Support Naming Task Action

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #15392
    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

      #15398
      zsoik
      Participant

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

        #15397
        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

          #15396
          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.

            #15395
            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).

              #15394
              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

                #15393
                Gavalakis
                Keymaster

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

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