NEW
Font size
WorksheetsUnity Certified User: Programmer 24
Total questions: 49
Worksheet time: 2hrs 35mins
The role of a Raycast is to:
Modify properties of objects in a scene
Locate colliders along the path of a ray
Render graphics more efficiently
Simulate physics interactions
One way to apply an Animator Controller to a Game object is to Drag from the Project window onto the GameObject in the Inspector.
True
False
Which of the following sequences best describes how you would create a new transition:
Left-click on a state and select an option
Right-click on a state and choose Make Transition
Double-click on a state and enter settings
Drag from one state to another
Animations are stored in Unity project as Animation clips.
True
False
To create an Animator Controller, what should you right-click in the project window and choose?
Create> Animation Controller
Create> Animator
Create> Animation Clip
Create> Animator Override Controller
What tab of the Inspector window will display whether an asset selected in the Project window has an animation?
Console Tab
Animation Tab
Inspector Tab
Project Tab
Animator Controller allows you to Arrange and maintain a set of animation for a GameObject.
True
False
How many animation clips can you create from an asset?
One
Five
Ten
Unlimited
Finish the following code to reference the gameObject's position: Vector pos = ________.
gameObject.transform.position
gameObject.position
transform.position
position.gameObject
A method is used to?
define a function in a class
store data
create a new class
send an email
What type of variable is accessible to other scripts?
private
protected
public
static
What data type must be used in the following code? ______ num = 8.0f
int
float
double
String
The Start() function is called when ______.
an object is instantiated
a program finishes execution
a function is declared
a loop starts
What does Debug.Log("Hello World") do in a programming environment?
Displays the message 'Hello World' in the console
Deletes the message 'Hello World' from the console
Saves the message 'Hello World' to a file
Sends the message 'Hello World' to a web server
Which of the following methods are default in Unity C# scripts?
Start() and Update()
Awake() and FixedUpdate()
OnEnable() and OnDisable()
LateUpdate() and Reset()
Which method is called every frame?
Start()
Update()
FixedUpdate()
LateUpdate()
Which method is called when the object is enabled?
OnEnabled()
OnActivate()
OnStart()
OnInitialize()
Variable type that stores an x, y, z value is called a?
Array
Vector 3
Tuple
Set
Which variable declaration is used to make a variable not accessible by other classes but still accessible in the Unity editor?
public
private
SerializeField
protected
What method is used to allow the Unity editor to reset the object variables back to default?
Reset()
Refresh()
Reload()
Restore()
Which method does not return a value?
Void Start()
int Update()
float CalculateValue()
bool IsActive()
Score accumulation, attacking and player health are examples of Game Mechanics.
True
False
Besides Exit Time, what can drive transition conditions?
Parameters
Variables
Functions
Events
Dragging an Animator Controller onto a Game Object in the Inspector creates an:
Animator Component
Rigidbody Component
Collider Component
Mesh Renderer Component
In order to define new virtual input axes, you need to configure the key mapping in the:
Input Manager
Control Panel
System Preferences
Device Manager
When enabled, allows GameObjects to pass through the collider.
In game design, non-player characters are:
Characters controlled by the game's AI
Characters played by other players
The main character controlled by the player
None of the above
A executes a set of instructions and can either return a value or not return a value.
A floating-point variable is distinguished by what letter immediately following the number?
This Transition Parameter type is reset by the controller when consumed by a transition: .
Signal
Reset
Parameter
By default, all animations are set to:
Stop
Pause
Reverse
In the following line of code, which of these does NOT set playerPosition to 0,0,0?
playerPosition = new Vector3(0,0,0);
playerPosition.Set(0,0,0);
playerPosition = Vector3.zero;
playerPosition = Vector3.one;
To create this placeholder for animation in the Animator Window, you would first right-click in any open area. Your next action would be to choose ?
Insert > object
Add > new
Set > placeholder
gets a reference to a component on a GameObject.
FindComponent
ObtainComponent
FetchComponent
For an animation clip to take place after no specified state, choose the clip to transition from:
Initial State
Default State
Base State
In which UI component would you use a ?
Button
TextView
ListView
parameter - a value passed into a .
method
function
procedure
Forces (such as gravity) can only affect a .
liquid
gas
plasma
Method ______ does not have a return value.
void
int
string
boolean
static physics - No forces or physics are applied to the object. It is:
Registers both collisions and forces. Is moveable.
Registers collisions but not forces and is moveable.
in Unity, this is the depth axis.
in Unity, this is the vertical axis.
The method belongs to the program class and is not an object of the program class.
- This is a method in Unity that allows objects to be moved or really slide one direction or another.
This is a data type in the C# language that can contain only true and false as values.
This component enables game objects to act under the control of the built-in physics engine in Unity.
This is a data type in the C# language that can contain decimal numbers.
