Skip to main content

Using Unity

A reference of common Unity operations, with natural language prompt examples and the tools they invoke.

Scene Management​

What You Want to DoWhat to SayTool Used
View the scene hierarchyShow me the scene structureget_hierarchy
Create a new sceneCreate a new scenecreate_scene
Save the sceneSave the scenesave_scene
Open a sceneOpen MainSceneopen_scene
Take a screenshot of the sceneTake a screenshottake_screenshot

Object Operations​

What You Want to DoWhat to SayTool Used
Create an objectCreate a Cubecreate_object
Move an objectSet the Cube's position to (0, 5, 0)set_transform
Rotate an objectRotate the Cube 45 degreesset_transform
Duplicate an objectDuplicate the Cubeduplicate_object
Delete an objectDelete the Cubedelete_object

Materials​

What You Want to DoWhat to SayTool Used
Create a materialCreate a red materialcreate_material
Change the colorSet the Cube's color to blueset_material_color
Set a textureApply this texture to the Cubeset_material_texture
View the material listShow me the material listget_materials
Change the shaderSwitch the material to URP Litset_material_shader

Scripts​

What You Want to DoWhat to SayTool Used
Create a scriptCreate a PlayerController scriptcreate_script
Read a scriptShow me the contents of PlayerControllerread_script
Edit a scriptChange the move speed to 10edit_script
Add a componentAdd a Rigidbody to the Cubeadd_component
Change a component valueSet the Rigidbody mass to 5set_component_property

Lighting​

What You Want to DoWhat to SayTool Used
Add a lightAdd a PointLightcreate_light
Change light colorSet the light color to orangeset_light_property
Change light intensitySet the light intensity to 5set_light_property
Set ambient lightingMake the ambient light darkerset_environment

Camera​

What You Want to DoWhat to SayTool Used
Add a cameraAdd a cameracreate_camera
Move the cameraSet the camera position to (0, 10, -10)set_transform
Change the camera directionPoint the camera at the originset_transform
Change FOVSet the camera FOV to 90set_camera_property

Animation​

What You Want to DoWhat to SayTool Used
Create an AnimatorControllerCreate an animator for the Cubecreate_animator
Create an animation clipCreate a rotation animationcreate_animation_clip
Add a parameterAdd an isRunning parameteradd_animator_parameter
Set up a transitionCreate a transition from Idle to Runadd_animator_transition

Physics​

What You Want to DoWhat to SayTool Used
Add a RigidbodyAdd a Rigidbody to the Cubeadd_component
Add a ColliderAdd a BoxCollider to the Cubeadd_component
Disable gravityTurn off gravity on the Cube's Rigidbodyset_component_property
Set a physics materialSet the bounciness to 0.8set_physics_material
Add a jointAdd a HingeJointadd_component

UI​

What You Want to DoWhat to SayTool Used
Create a CanvasCreate a UI Canvascreate_ui_canvas
Add textAdd a text element for the score displaycreate_ui_element
Add a buttonAdd a Start buttoncreate_ui_element
Adjust UI positionCenter the button on the screenset_ui_layout

Build​

What You Want to DoWhat to SayTool Used
Check build settingsShow me the build settingsget_build_settings
Switch platformSwitch to Androidswitch_platform
Run a buildBuild for Windowsbuild_project
Change Player SettingsSet the resolution to 1920x1080set_player_settings