running connect in script vs connecting nodes vie the GUI node tool

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ametdecrypt

so coming from game maker and unity I was a bit baffled by the connect function but I mostly get it. however I was wondering what you all thought of using the ui to make connections and run functions off of that vs making your own connections in the script and running those. any benefits or downsides to doing it either way?

:bust_in_silhouette: Reply From: kidscancode

It’s really just a personal preference. There’s no practical difference.

If you make the connections in the UI, you can see them all in the “Node” tab of the emitting object, while if you do it in code, you have to hunt through looking for connect statements.

On the other hand, if you’re instancing objects and making dynamic connections, or if you need to connect a lot of objects, doing it in code is going to be much easier.

that makes sense. so spamming prefabs is easier done in code and singular objects is a toss up.

ametdecrypt | 2018-05-15 07:04