Recall & Review
beginner
What is the purpose of the
Start() method in Unity?The
Start() method runs once when the game object becomes active. It is used to initialize variables or set up the game state before the game begins.Click to reveal answer
beginner
How often is the
Update() method called in Unity?The
Update() method is called once every frame. It is used to check for input, move objects, or update game logic continuously.Click to reveal answer
beginner
Can
Start() be used to set initial values for variables?Yes,
Start() is the perfect place to set initial values because it runs once before the first frame update.Click to reveal answer
beginner
What happens if you put code inside
Update()?Code inside
Update() runs every frame, so it can respond to player input or move objects smoothly over time.Click to reveal answer
intermediate
Why should heavy calculations be avoided inside
Update()?Because
Update() runs every frame, heavy calculations can slow down the game and cause lag. It's better to keep Update() efficient.Click to reveal answer
When is the
Start() method called in Unity?✗ Incorrect
Start() runs once before the first frame update to initialize the game object.What is the main use of the
Update() method?✗ Incorrect
Update() runs every frame to update game logic and respond to input.Which method should you use to set initial values for variables?
✗ Incorrect
Start() is used to set initial values before the game starts running.What could happen if you put heavy calculations inside
Update()?✗ Incorrect
Heavy calculations in
Update() can slow down the game because it runs every frame.Which method runs repeatedly during the game?
✗ Incorrect
Update() runs every frame to keep the game responsive.Explain the difference between the
Start() and Update() methods in Unity.Think about when each method runs during the game.
You got /4 concepts.
Why is it important to keep the code inside
Update() efficient?Consider how often Update runs and its impact on performance.
You got /4 concepts.