How to discern between 2 of the same component in the blackboard?

Forums 💬 NodeCanvas ⚙️ Support How to discern between 2 of the same component in the blackboard?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17316
    meatloaf
    Participant

      Right now I have two components of the same type on my gameobject. Currently it doesn’t look like NodeCanvas supports this behavior in the blackboard. I can only select the component name rather then a specific component when trying to add a property associated with that component. Am I correct in what i’ve observed so far or is there something I’m missing?

      Is specifying a component instance on the roadmap, or will this never be supported?

      Thanks in advance!

      #17317
      Gavalakis
      Keymaster

        Hello again,

        Indeed, only the first component of the same type found attached on the gameobject is supported for this (and most) similar operations.
        Supporting multiple components of the same type, will also require storing a direct reference to the component into every single such bound variable and that will require a lot of refactoring to make this work for a case which is not “that” common in general.

        Thus, at this point, there is unfortunately no plan to support such discern between multiple components of same type, but I will certainly take a look at this in case some other alternative that does not require direct reference is possible (like for example storing the order index of the component within the name string).

        Thanks!

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