Skip to main content

Using Godot

A reference for common Godot operations, with natural language instruction examples.

Node operations​

What you want to doWhat to sayTool used
Add a nodeAdd a MeshInstance3D nodeadd_node
Delete a nodeDelete the Player nodedelete_node
Move a nodeSet the Player's position to (0, 5, 0)set_node_property
View the node listShow me the scene treeget_scene_tree
Rename a nodeRename Node3D to Playerrename_node

Scripts​

What you want to doWhat to sayTool used
Create a GDScriptCreate a script for Playercreate_script
Read a scriptShow me the contents of player.gdread_script
Edit a scriptChange the movement speed to 10edit_script
Connect a signalConnect the button's pressed signalconnect_signal

Materials​

What you want to doWhat to sayTool used
Create a materialCreate a red StandardMaterial3Dcreate_material
Change the colorChange the material color to blueset_material_property
Set a textureSet the textureset_material_texture
Create a shaderCreate a custom shadercreate_shader

Scene management​

What you want to doWhat to sayTool used
Save the sceneSave the scenesave_scene
Open a sceneOpen main.tscnopen_scene
Create a new sceneCreate a new scenecreate_scene
Instantiate a sceneInstantiate enemy.tscninstance_scene

Resources​

What you want to doWhat to sayTool used
View resourcesShow me the project's resource listlist_resources
Load a resourceLoad the textureload_resource
Check export settingsShow me the export settingsget_export_settings

Physics​

What you want to doWhat to sayTool used
Add a CollisionShapeAdd a collision shapeadd_collision_shape
Create a RigidBody3DMake it a physics objectadd_node
Add an AreaAdd a detection areaadd_node