How can I add custom parameters to DT myself?

Forums 💬 NodeCanvas ⚙️ Support How can I add custom parameters to DT myself?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15796
    ineedhelp
    Participant

      How can I add custom parameters to this myself?

      I’ve added a new parameter to the STATMENT code, but how does it show up in the graph?

      #15799
      Gavalakis
      Keymaster

        Hello there,

        The Statement class UI is controlled by its ObjectDrawer (found in the “StatementDrawer.cs” file). ObjectDrawers work very similar to Unity ObjectDrawer which means that the UI code in them overrides the default UI. Thus if you’ve added some fields in the “Statement” class, you will need to also please add the appropriate GUI code in the “StatementDrawer” class to show that field.

        Please let me know if this works for you.
        Thank you.

        #15798
        ineedhelp
        Participant

          Yes, I found out later that it was possible to do that. But for me, trying to achieve the effect I wanted, the plugin was very complicated to write and caused me to struggle. Might just have to give up.

          #15797
          Gavalakis
          Keymaster

            Hello again,

            Please let me know if you need any help at all I would be glad to help.

            Thank you.

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