Unity gMetrix Module 9
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Raymundo Martinez
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Anime
Quiz
•
KG - University
10 questions
RFID Quiz
Quiz
•
10th - 12th Grade
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
cybercrime
Quiz
•
12th Grade - University
10 questions
Microcontroller
Quiz
•
11th Grade - University
10 questions
Review Quiz #2- Productivity Tools
Quiz
•
11th - 12th Grade
10 questions
ZOOM QUIZ
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
