Is there a way to get the script of existing nodes

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

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. :slight_smile:

:bust_in_silhouette: Reply From: Lopy

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.