Reply To: Setting a Variable works in Editor but not in the Build

NodeCanvas Forums Support Setting a Variable works in Editor but not in the Build Reply To: Setting a Variable works in Editor but not in the Build

#14122
Gavalakis
Keymaster

Hello,

Indeed, .isConnected only works in the build. This is initially done for performance reasons, but I could make a work around if required to also make it available in build. Truth is, that none of the nodes I’ve made for FC required the isConnected property, but I can understand that there can be some usage for that.
For instance, you could simply change your code from this:

To simply this:

If, input_progress is not connected, then the direct value set in the inspector of the node will be used, which can of course be left to the default zero. The whole concept here, would be to automatically use the connected value if there is indeed a connection, otherwise use the directly set value instead 🙂

Having said that and as stated above, if you want I can take a look at making isConnected available in build as well.

Thanks!

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