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

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9746

    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

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

    Join us on Discord: https://discord.gg/97q2Rjh

    #9747

    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.