Generic Action – Namespace not used but it's defined

Forums 💬 NodeCanvas ⚙️ Support Generic Action – Namespace not used but it's defined

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15904
    3d-magic-vr
    Participant

      Hello and good day, I got an issue about using a namespace referencing a class of mine, the issue it’s that when I try to reach a method through the class reference, the method does not appears accessible, ‘here’ is the link to the posted comment in discord.

      Thanks for your help, kind regards.

      #15905
      Gavalakis
      Keymaster

        Hey!

        Hmm. This is weird. From the screenshots I see that DataContainer namespace is grey out (meaning it is not used) in the Task ActionTask class. This may mean that there is another class named exactly the same “ToggleByGroup” and the IDE is using that instead of yours that lives in the DataContainer namespace.

        Can you please explicitly use the full type name in your ActionTask class and try again?
        This basically means to use the full type name “DataContainer.ToggleByGroup” instead of simply “ToggleByGroup” wherever that type is used.
        Alternatively you can also add this at the top of the class:

        Let me know if that was indeed the case.
        Thanks!

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