Unity gMetrix Module 9

Quiz
•
Computers
•
12th Grade
•
Medium
Raymundo Martinez
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
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.
Similar Resources on Wayground
10 questions
Good Website Design Quiz

Quiz
•
11th Grade - University
10 questions
ADMIN SISTEM JARINGAN - XII TKJ-GANJIL

Quiz
•
12th Grade
10 questions
Topologi Jaringan

Quiz
•
9th - 12th Grade
10 questions
GCC Quizizz

Quiz
•
9th - 12th Grade
10 questions
Technical Terms - Internet (A-Z) - Responsive Web Design

Quiz
•
12th Grade
10 questions
POST QUIZ JAVA

Quiz
•
12th Grade
5 questions
Year 8 Game Code Lesson 1

Quiz
•
12th Grade
10 questions
Czy dobrze znasz Minecraft?

Quiz
•
1st Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade