NEW
Font size
WorksheetsModule 3 - Unity Scripting Basics
Total questions: 15
Worksheet time: 8mins
What programming language is used with the Unity game engine?
GDScript
C#
C++
Luau
When using the Unity Manual or Unity Scripting Reference, it’s important to:
Print it
Answered
Bookmark it in your web browser
Make sure the correct Unity version is selected
Google it
What is a Unity application programming interface (API)?
A collection of functions and methods that game developers can access to easily create game mechanics and systems
Answered
User interface components that developers can import into a project
A collection of game assets that you can easily download and use in a Unity game development project
Game examples you can use as a template to start developing a new Unity project
At the beginning of every Unity C# script, APIs are accessed with what command?
use
boilerplate
import
using
In the Unity game engine, how often is the Update() function automatically called?
every minute
Answered
every frame
every 30 frames
every second
What command is used to define a function in the C# programming language?
func
def
function
void
Which function name likely indicates that it’s a game loop?
Update()
Draw()
Loop()
Start()
In the Input Manager, which movement would you use to edit the keys or joystick input used to make a sprite or game character move along the x-axis?
Horizontal
Mouse Y
Jump
Vertical
In the Input Manager, which movement would you use to edit the keys or joystick input used to make a sprite or game character move along the y-axis?
Horizontal
Vertical
Mouse X
Jump
If you want to change the keyboard keys used to move a sprite, do you need to change it in a C# script that uses axes input?
No. You would only need to change the key inputs in the Game Settings.
Answered
Yes. You would need to update the Input Manager and identify the keys in the script.
Yes. You would need to identify each key used for input in the C# script.
No. You would only need to change the keys used for input in the Input Manager.
Input.GetMouseButtonDown(1) returns true if the middle mouse button was pressed.
True
False
In Unity, which component is used to detect collisions between game objects?
Renderer
Collider
Animator
Rigidbody
Which Unity component is responsible for rendering 3D models in a scene?
Collider
Renderer
Animator
Rigidbody
What is the default method used to initialize variables or game state in Unity scripts?
Start()
Initialize()
Awake()
Setup()
In Unity, which function is used to apply physics forces to a game object?
ApplyForce()
Rigidbody.AddForce()
Physics.Push()
Force.Apply()
