+7 votes

Near the bottom, directly above the Creat and Cancel buttons. When you enable it, you can't name your script, and I'm not sure what it does or what kind of code should be in it.

in Engine by (102 points)

1 Answer

+10 votes

A built-in script is one that becomes part of that node, and not a separate file. Rather than creating an external .gd file and reference it, the script will be saved inside of the scene file itself.

by (5,276 points)

Hmm, ok. What's the benefit of such a thing?

Not many. The script is packed into the scene, so if you move it to another project, the scripts come with it, so you have less dependencies to copy and re-link.

I see, thanks!

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.