0 votes

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?

asked May 14 in Engine by ametdecrypt (12 points)

1 Answer

+1 vote

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.

answered May 14 by kidscancode (4,172 points)

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.