
Unity gMetrix Module 3
Authored by Raymundo Martinez
Computers
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
5 mins • 1 pt
Which of the following are correct uses of comments? (Choose two)
When you want to create a custom indentation for code
When you want to make code easier to understand
When you want to send special instructions to the compiler
When you want to ignore a piece of code for testing
Answer explanation
Two proper uses for comments are making code easier to understand and marking a piece of code to ignore for testing purposes.
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the role of the Start method in the AnimationsManager class?
To initialize the Animator object
To create a new AnimationList
To set the animation trigger
To make the class public
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
A programmer created the following public class to be able to play animations from other scripts:
public class AnimationsManager : MonoBehaviour
{
Animator anim;
struct AnimationList{
public Animation idle;
public Animation run;
public Animation jump;
}
void Start(){
private AnimationList list = new AnimationList();
}
void PlayAnimation(string animationName) {
anim.SetTrigger(animationName);
}
}
However, when trying to call the PlayAnimation method from another class, the programmer had no access to it. Which change to this class will make that method
accessible?
Make the PlayAnimation method public
Make the AnimationsManager class static
Make AnimationList public
Add a public access modifier to the anim variable
Answer explanation
By making PlayAnimation public, the programmer should be able to call the method from a different script.
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which menu option allows you to change the code editor in Unity?
IDE Application
Script Editing Tool
Unity IDE select
External Script Editor
Answer explanation
To change the default scripting editor in Unity, you can select a different one using the External Script Editor option
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
True or False: Visual Studio is the only code editor you can use with Unity.
True
False
Not sure
Sometimes
Answer explanation
False. Unity can be set up to use many different code-editing tools.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?