[NC2] Cannot assign to BBParameter from a dynamically typed node.

Forums 💬 NodeCanvas ⚙️ Support [NC2] Cannot assign to BBParameter from a dynamically typed node.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19217
    m4rc
    Participant

      I’ve made a similar node to SetOrtherBlackboardVariable.cs using the following pattern, with Person being a custom class of ours:

      However, when I assign a blackboard variable of type “Person” to NewValue, and that variable is set to a valid value, then trigger my node, then NewValue.value is null. The TargetVariableName is correct. I can’t seem to figure out what I’m doing wrong in this case, is there anything you can think of?

      Thanks in advance,
      Marc

      #19219
      Gavalakis
      Keymaster

        Hello,

        May I suggest you to use a generic task instead? It’s more..”bullet proof” :). Here is an action:

        The SetOtherBlackboardVariable will even change to use generics as well.

        Let me know if that solves the issue.
        Thanks.

        #19218
        m4rc
        Participant

          Thanks, that worked! And is a more generic solution.

          Cheers,
          Marc

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