0 votes

Hi,
to understand more about Godot, I try to find the code of existing nodes, for example, area2d and kinematicBody2d.
However, I don't know the way to access them, so I was stuck at this point.
Is this idea possible?
Thanks for all kinds of help. :)

in Engine by (341 points)

1 Answer

+1 vote

The "scripts" of default Nodes is lost when compiling the engine. To access the source code, you can download it from the Git (remember to change the branch when new releases come out).

However, they are not necessarily written in the same way as you would in GDscript, it is not the same language, and they abstract things away so that you do not have to deal with them. To see examples of code that use these nodes, try opening a template (second tab on project selection), or follow a tutorial.

When trying to find documentation, you can use the "Search Help" button on the top right of the script view, or ctrl+click on the thing you want more information about.

by (2,688 points)
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.