Unity gMetrix Module 9

Unity gMetrix Module 9

12th Grade

5 Qs

quiz-placeholder

Similar activities

Game Development Testing Quiz

Game Development Testing Quiz

9th - 12th Grade

10 Qs

Symbol Puzzle - Part 2

Symbol Puzzle - Part 2

12th Grade

10 Qs

scratch quiz

scratch quiz

1st Grade - University

10 Qs

Python Symbol Puzzle Quiz - part 1

Python Symbol Puzzle Quiz - part 1

12th Grade

10 Qs

Name That Nick Show?

Name That Nick Show?

KG - University

10 Qs

HTML Quiz

HTML Quiz

12th Grade

10 Qs

Викторина по анимации в играх

Викторина по анимации в играх

3rd Grade - University

5 Qs

Technical Terms - Internet (A-Z) - Keep-Alive

Technical Terms - Internet (A-Z) - Keep-Alive

12th Grade

10 Qs

Unity gMetrix Module 9

Unity gMetrix Module 9

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Raymundo Martinez

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Media Image

A programmer set up a UI button and added a GameObject with the following code to the On Click event: private void LoadGame () { Debug.Log("Load game code here ... "); } The goal is to call LoadGame when the button is pressed, but the method is not showing on the functions dropdown button.

What is causing this issue?

LoadGame will not show if there is only a Debug.Log method inside.

LoadGame should be public in order to be shown on the dropdown.

SceneManagement namespace is not added to the script.

Ul buttons can't be used to load other scenes.

Answer explanation

Only public methods can be accessed when using an On Click event.


2.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

The code below is causing an error. What is most likely the cause of the error? private void OnCollisionEnter2D(Collision collision) { }

OnCollisionEnter2D needs to be public to collide with another GameObject.

OnCollisionEnter2D scope can't be empty.

OnCollisionEnter2D only works with a Collision2D type of parameter.

OnCollisionEnter2D should have a Collision return type.

Answer explanation

OnCollisionEnter2D only works with Collision2D type of parameter. When OnCollisionEnter2D gets called, the parameter receives a Collision2D type

3.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

True or False: OnTriggerEnter2D works only if the GameObject with the code inside has either a BoxCollider or a BoxCollider2D component setup.

True

False

Answer explanation

False. OnTriggerEnter2D will work with any 2D type of collider.


4.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Which tool is used to add packages that extend Unity capabilities?

Package Manager

Asset Manager

Download Manager

Package Assistant


Answer explanation

Package manager is used to add functionality to Unity.

5.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Inside an if statement, there can only be one condition.

True

False

Answer explanation

False. Inside an if statement, there can be more than one condition.