Font size
WorksheetsUnity Game Development Basics # 2
Total questions: 5
Worksheet time: 20mins
1-15.
Answer the questions below after watching the video
How do you remove a component in Unity?
Use the 'Delete' key
Right-click and select 'Remove Component'
Delete the object
It cannot be removed
How can you make a script affect another object in Unity?
Dragging the script onto the object
By copying the script
Scripts cannot affect other objects
Through inheritance
What is the first step to start programming in Unity?
Create a new project
Add a new object
Create a script
Open the script editor
What is the purpose of the 'Start' function in Unity scripts?
Runs once when the game ends
Runs continuously during gameplay
Runs once when the game starts
There is no 'Start' function in Unity
Which script editor is mentioned for use with Unity?
Sublime Text
Notepad++
Eclipse
Visual Studio
How do you display a message in the Unity console?
Console.WriteLine()
Print()
MessageBox.Show()
Debug.Log()
What does 'Debug.Log' do in Unity?
Fixes errors in the code
Saves the game state
Compiles the code
Logs a message to the console
How can you modify an object's properties in Unity?
Cannot be modified
Using direct values
In the object inspector
Through a script
How do you reference a component in Unity scripts?
Directly by its name
By creating a public variable
Using the 'GetComponent' method
Components cannot be referenced
What method is used to apply force to an object?
AddForce()
Force()
ApplyForce()
Push()
Why is frame rate independence important in Unity?
Reduces CPU usage
Improves graphics
Increases game speed
Ensures consistent gameplay
What is the significance of 'time.deltaTime' in Unity?
Calculates the time since the game started
Measures the time between frames
Sets a timer for game events
Delays the execution of code
What is the preferred method for physics calculations?
Update()
Start()
LateUpdate()
FixedUpdate()
Why should 'FixedUpdate' be used for physics calculations?
It runs once per game start
It runs based on the frame rate
It's faster than 'Update'
It provides a consistent update cycle
What is the purpose of comments in code?
To change how code executes
To leave notes and explanations
To declare variables
To import libraries
In Unity, what is the primary language used for scripting?
Python
C#
JavaScript
C++
How can you optimize game performance in Unity?
By increasing the number of polygons in 3D models
By using more detailed textures
By reducing the resolution of textures
By adding more lights to the scene
Which of the following is a feature of the Unity Editor?
Real-time collaboration
Automatic code writing
Drag and drop interface
Built-in web server
Which Unity tool allows you to animate characters and objects?
Animator
Timeline
Animation Window
Both A and C
