Unity

What can you use to visually distinguish between Play mode and Design mode in the editor?

1.

The object inspector

2.

Handles

3.

Gizmos

4.

Play mode tint

Q 1 / 47

Unity

A developer executes the C# code below, which finds any game objects tagged as “enemy” in a start event. But the developer notices that, when executed, FindGameObjectsWithTag returns NULL even though the scene contains objects tagged as “Enemy”. What is a possible cause?

`GameObject[] MyEnemies = GameObject.FindGameObjectsWithTag(“Enemy”);`

1.

The objects are animated

2.

The objects are on the UI layer

3.

The objects are not named “Enemy”

4.

The objects are deactivated

Q 2 / 47

Unity

What does this code sample achieve? Float Answer = Random.value * 10f;

1.

It selects a random number that is less than 10

2.

It selects a random number greater than 10

3.

It selects a random number between 0 and 10

4.

It selects a random number that is multiple of 10

Q 3 / 47

Unity

Unity scenes may be saved entirely in the YAML format. Why might you do this?

> Also, the text data can be generated and parsed by tools, making it possible to create and analyze scenes automatically. > [Reference](https://docs.unity3d.com/2021.2/Documentation/Manual/TextSceneFormat.html)

1.

To reduce scene file size

2.

To externally parse a scene and its objects

3.

To optimize scene loading and unloading

4.

To improve platform compatibility

Q 4 / 47

Unity

Orthographic cameras remove which visual effect?

Gamma color space and bloom are related to graphics. Depth of field is related to objects bluring when at a certain distance from the camera. 1. [Reference](https://docs.unity3d.com/2019.3/Documentation/Manual/CamerasOverview.html) 2. [Reference](https://pbr-book.org/3ed-2018/Camera_Models/Projective_Camera_Models#OrthographicCamera)

1.

Gamma color space

2.

Depth of field

3.

Foreshortening

4.

Bloom

Q 5 / 47

Unity

What is Cinemachine Virtual Camera used for?

> Use the Aim, Body, and Noise properties to specify how the Virtual Camera animates position, rotation, and other properties. The Virtual Camera applies these settings to the Unity Camera when Cinemachine Brain or Timeline transfers control of the Unity camera to the Virtual Camera. > [Reference](https://docs.unity3d.com/Packages/com.unity.cinemachine@2.9/manual/CinemachineVirtualCamera.html)

1.

To override standard scene cameras with cinematic behaviours

2.

To determine what cameras will see when arriving at specific locations

3.

To create predefined camera presets to apply on standard cameras

4.

To act as dummy cameras for fooling meshes into thinking they are being seen

Q 6 / 47

Unity

What does the Microphone class save captured audio data as?

The Microphone class saves captured audio as an audio clip asset, which may then be stored as a OGG file.

1.

An audio clip asset

2.

An MP3 file

3.

A WAV file

4.

An OGG file

Q 7 / 47

Unity

Cinemachine offers tools for building gameplay behaviours. Which component makes spline based paths for moving objects?

1.

Cinemachine Target Group

2.

Cinemachine Smooth Path

3.

Cinemachine Free Look

4.

Cinemachine Brain

Q 8 / 47

Unity

When building assets like meshes for Unity. It is good practice to use which measurement unit?

Unity's default units are in meters (Unreal Engine too). If you keep this in mind and model with your units alined to meters, the lighting system will work minimal artifacting.

1.

Cubits

2.

Feet

3.

Inches

4.

Meters

Q 9 / 47

Unity

The Collaborate feature of Unity Teams empowers whom to do what?

1.

Developers to contribute to the unity source code

2.

Companies to raise money for projects through crowdfunding

3.

Team members to save, share, and sync unity projects

4.

Developers to integrate version control systems, like git, into projects

Q 10 / 47

Unity

The Clear Flags property of the Camera components affects which behaviour?

1.

How the camera renders UI objects on top of the scene

2.

How the camera renders transparent objects by default

3.

How the camera renders its background on each frame

4.

How the camera occludes background objects

Q 11 / 47

Unity

What is the OnAnimatorMove event on MonoBehaviour objects commonly used for?

1.

Detecting when an object moves

2.

Updating a navigation agent in response to keyframe data

3.

Replaying an animation when it has completed

4.

Modifying the root motion of an animated object

Q 12 / 47

Unity

Which MonoBehaviour method runs by default in Editor mode?

1.

OnBecameInvisible

2.

OnAnimatorMove

3.

Reset

4.

OnTriggerEnter

Q 13 / 47

Unity

For the OnTriggerEnter function to invoke successfully on a collision between two objects, at least one must have which two components?

1.

A Collider and a MeshRenderer

2.

A Collider and a MeshFilter

3.

A Rigidbody and a Collider

4.

A MeshRenderer and a MeshFilter

Q 14 / 47

Unity

UI elements, such as images and buttons, may be fixed at specific screen positions to build responsive interfaces. Which Unity features help achieve this?

1.

Events and raycasts

2.

Quaternions and Euler angles

3.

Opacity and transparency

4.

Anchors and pivots

Q 15 / 47

Unity

The occlusion map of a material is often a grayscale image with pixels ranging between black and white. What does this map contribute to an object’s material?

1.

White pixels reveal the detail map and black pixels reveal none

2.

White pixels allow emission and black pixels allow none

3.

White pixels receive shadows and black pixels receive none

4.

White pixels receive full indirect illumination and black pixels receive none

Q 16 / 47

Unity

What can you use to organize different game objects into groups inside the Hierarchy panel?

1.

Canvas objects

2.

Event systems

3.

Empty objects

4.

Mesh renderers

Q 17 / 47

Unity

The Project windows search box can filter the display of assets with text commands. Which command displays only texture assets?

1.

T:mesh

2.

T:texture

3.

T:mesh

4.

Show textures

Q 18 / 47

Unity

A bullet game object is fired from a weapon and travels quickly through the scene using a RigidBody component. It sometimes passes through solid objects even though they have colliders. What is a reasonable strategy for correcting this?

1.

Expand the collider size of all scene objects and the bullets to detect collisions with better time

2.

Increase the Fixed Time Step value from the Project Settings dialog to change the frequency of the FixedUpdate event

3.

Change the Collision Detection property of the Rigidbody to Continuous Dynamic or Continous Speculative

4.

Enable the IsKinematic property of the Rigidbody

Q 19 / 47

Unity

Some material types may include normal map textures. What does a normal map achieve?

1.

It programmatically reduced the polycount of your meshes.

2.

It displaces mesh geometry with extrusion and bevels to generate higher-poly versions.

3.

It creates the appearance of surface detail on mesh - like bumps, dents, and scratches

4.

It is a level-of-detail system that progressively reduces a mesh’s polygons as a scene camera moves farther away from it

Q 20 / 47

Unity

A SkinnedMeshRenderer component is attached automatically by Unity to some mesh objects when they are added to a scene. Which reason best explains why?

1.

The mesh file contains bones and rig data

2.

The game object also features an animator component

3.

The game object is a Player-Controlled character

4.

The mesh file contains a humanoid character

Q 21 / 47

Unity

Which C# attribute can show a private variable in the object inspector?

1.

Range

2.

HideInInspector

3.

Serializable

4.

SerializedField

Q 22 / 47

Unity

What is a technique for optimizing Unity UI elements?

Every time an element on a canvas is updated, the whole canvas is redrawn. If elements are never being updated, keeping them on a single canvas is ideal.

1.

Group static UI elements on one canvas, and dynamic elements on a separate canvas

2.

Position all canvas objects to the world origin

3.

Group as many UI elements as possible onto only one canvas

4.

Divide the screen into multiple canvas objects, each sized to a quarter of the screen size

Q 23 / 47

Unity

What does the C# Space attribute used below achieved?

[Space(20)] Public string PlayerName; This is a great way to customize your inspector without writing a new inspector script for it.

1.

It inserts 20 space characters as a default value into the string variable below

2.

It inserts 20 pixels of margin on all edges around the variable inside the Object Inspector

3.

It inserts 20 pixels of empty space above the variable inside the Object Inspector

4.

It inserts 20 pixels of empty space below the variable inside the Object Inspector

Q 24 / 47

Unity

Every time you double-click a C# script file from the Project window, Unity prints the message below (or something very similar) to the console. What is a reasonable step in trying to solve this? Cannot start process because a file name has not been provided

1.

Search the Project windows for all script files and then rename all of them

2.

Set Visual Studio as the code default editor via the External Tools tab of the Preferences menu

3.

Ensure you have specified a Play mode tint color from the Colors tab of the Preferences menu

4.

Select the Script file, and then select Assets > Find references in Scene from the Application menu

Q 25 / 47

Unity

What is the Console windows useful for?

1.

Viewing and editing text files

2.

Downloading data packets and asset packages

3.

Typing and executing command line instructions through a shell interface

4.

Identifying errors in your script files and project

Q 26 / 47

Unity

Sprite atlas assets, large textures containing many smaller sprites, can be optimized by batching together what?

1.

Sprites that are non animated

2.

Sprites that appear together in game

3.

Sprites using the same color palette

4.

Sprites of the same dimensions

Q 27 / 47

Unity

You are making a game where you need to execute your own functions in response to critical animation events for a rigged character. Specifically, there are two events you must handle: when an animation state is entered and when it is exited in the Animator graph. Which class may be used to invoke your code when those two events happen?

`OnStateMachineEnter()` and `OnStateMachineExit()` are the methods of the StateMachineBehavior class that handle this. AnimatorClipInfo displays information about the current clip being played, AnimatiorUtility deals with transform hierarchy, and AnimationInfo was removed in version 5.0.

1.

AnimatorClipInfo

2.

StateMachineBehaviour

3.

AnimationInfo

4.

AnimatorUtility

Q 28 / 47

Unity

How can you change the unique bundle identifier for a mobile build?

1.

Select Assets > import Package, and then import the Cross-Platform Input Asset Package

2.

Select Windows > Asset Management > Version Control, and then enter an identifier in the Source field

3.

Select File > Build Settings. Then from the Build dialog box, select Android or iOS, and select the Bundle Identifier from the Compression Method drop down menu.

4.

Select Edit > Project Settings > Player from the menu, and then expand the Other Settings tab

Q 29 / 47

Unity

Rigidbody components may be added to objects with colliders to make them affected by physical forces. What does the IsKinematic property achieve?

1.

It removes gravity from an object but retains all other forces

2.

It removes all physical forces from the object, except gravity

3.

It converts the object into physical forces that affect other objects

4.

It suspends physical forces on the object, allowing manual transofrmations

Q 30 / 47

Unity

The primary directional light in a scene is linked by default to a procedural scene Skybox. What does the rotation of this light control?

1.

The orientation of the Skybox

2.

The night and day status of the skybox

3.

The acoustics of all audio sources

4.

The resolution of the skybox

Q 31 / 47

Unity

You can combine quaternions together through which arithmetic operation?

1.

Multiplication

2.

Division

3.

Addition

4.

Subtraction

Q 32 / 47

Unity

Which feature generates binary tree data to optimize camera rendering in a scene?

1.

Render textures

2.

Navigation mesh

3.

Profiler

4.

Occlusion Culling

Q 33 / 47

Unity

How does the Range C# attribute control the interaction behavior of numerical variables in the Object Inspector?

1.

It restricts the variable value using a slider widget

2.

It validates the variable values through a text box widget

3.

It restricts the variable values using a color picker widget

4.

It presents valid options in a drop down list

Q 34 / 47

Unity

What does this code fragment do when attached to a rigged character?

public Animator avatar; public Transform lookAtObj; void OnAnimatorIK(int layerIndex) { avatar.SetLookAtPosition(lookAtObj).position; avatar.SetLookAtWeight(If); }

1.

It blends the characters head animation with a second predefined animation

2.

It makes the characters head face toward the specified target

3.

It returns the characters head back to a neutral position

4.

It makes a game object face toward the characters head

Q 35 / 47

Unity

The variable Transform.forward is a Vector3 measured in what?

1.

Local space

2.

Innerspace

3.

Normal space

4.

World space

Q 36 / 47

Unity

De-lighting is associated with which technology?

`When you use photogrammetry to scan in models from the real world, and bring in those models into Unity (or any renderer), you will notice that the lighting information is baked into the texture. You can remove the baked in lighting information with various tools online, but even Unity themeless wrote a custom tool for just this; check it out!` 1. [Reference](https://github.com/Unity-Technologies/DeLightingTool) 2. [Reference](https://github.com/Unity-Technologies/DeLightingTool/blob/master/Assets/DeLightingTool/Documentation/De-LightingTool.pdf)

1.

Virtual reality

2.

Augmented reality

3.

Motion capture

4.

Photogrammetry

Q 37 / 47

Unity

Humanoid character assets, like NPCs and the player character, feature on Avatar object. Which statement best describes its purpose?

1.

Avatars define parameter sets for facial muscle blendshapes

2.

Avatar facilitate animation retargeting across different humanoid characters

3.

Avatar define IK data for animated characters

4.

Avatars describe how textures map on deforming objects during animation

Q 38 / 47

Unity

You can perfectly align two mesh objects together at the vertices by using vertex snapping. How do you best access this tool?

![Vertex](images/Q39.png?raw=true)

1.

Select a mesh object and press the W key over the destination vertex

2.

While holding down the C key, click and drag from the source to the destination mesh

3.

Select **Edit > Enable Vertex Snap** from the menu, and then select your object

4.

While holding down the V key, click and drag your object from a corner vertex to its destination

Q 39 / 47

Unity

Which statement best descibes the function Quaternion.Euler?

Simplfying the math: Unity uses Quaternions internally to avoid Gimbal lock. The Euler XYZ (Pitch, Yaw, and Roll) axises can lock up when two axies are aligned. Quaternion.Euler converts the Euler number provided to the internally used Quarternion, to prevent this problem.

1.

It prints a Quaternion to a string that shows its X, Y, and Z rotation in degrees

2.

It converts a 3D orientation from Radiens to a Quaternion

3.

It converts a 3D orientation that is measured in degrees into a Quaternion

4.

It converts a Quaternion into a Vector3 in which X, Y, and Z are measured in degrees

Q 40 / 47

Unity

What does the Destroy function do?

> The object obj is destroyed immediately after the current Update loop, or t seconds from now if a time is specified. > [Reference](https://docs.unity3d.com/ScriptReference/Object.Destroy.html)

1.

It deactivates the specified game object immidiately

2.

It deletes the specified game object after the current update loop

3.

It deletes the specified game object when the application terminates

4.

It deletes the specified game object immidaitely

Q 41 / 47

Unity

You can programmatically control audio effects, like Pitch and Reverb, from C# scripts using which feature of an Audio Mixer asset?

Audio attenuation is about energy loss, commonly refered to as "gain". ParamEQ allows you to change the frequency of the audio - "pitch", with no C# support. Audio Mixer groups do allow you to control audio effects, but not through C#.

1.

audio attenuation

2.

exposed parameters

3.

ParamEQ

4.

Audio Mixer groups

Q 42 / 47

Unity

Multiple animations may be mixed together on a single character, selectively on different limbs. Which Mecanim feature supports this?

Mip Maps are a technique that improves image quality and reduces rendering speed, at the cost of storage space, by including smaller copies of the image in the same file. Animation events allow you to call functions at points in the timeline.

1.

Mip Maps

2.

avatar masks

3.

StateMachineBehaviour scripts

4.

animation events

Q 43 / 47

Unity

What does the PlayableDirector component allow you to do?

The PlayableDirector component stores the link between a Timeline instance and a Timeline Asset.

1.

run multiple functions on different game objects in parallel

2.

switch between different scene cameras on demand

3.

control the playback of a timeline instance in the scene

4.

record a gameplay session to a video file

Q 44 / 47

Unity

What does the Grid component do?

1.

generate a grid sprite at world origin

2.

helps you move objects to fixed grid increments

3.

reders and isometric grid in the scene during gameplay

4.

generates a grid mesh at the world origin

Q 45 / 47

Unity

Timeline sequences can initiate code during an animation using which feature?

EventSystem is not a timeline feature, neither are packets. Timeline signals are a subfeature of the markers, markers can directly initiate code, while a signal can only send the signal to a reciver. 1. [Reference](https://forum.unity.com/threads/new-in-2019-1-marker-customization.594712) 2. [Reference](https://blog.unity.com/technology/how-to-create-custom-timeline-markers)

1.

EventSystem

2.

markers

3.

signals

4.

packets

Q 46 / 47

Unity

Which code sample uses C# properties for creating the health functionality?

public class Health : MonoBehavior { private float HealthPoints = 100f; public float GetHealth() { return HealthPoints; } public void SetHealth(float Change) { HealthPoints += Change; if (HealthPoints <= 0) Destroy(gameObject); } } public class Health : MonoBehavior { public UnityEvent OnHealthChanged; private float HealthPoints = 100f; public void SetHealth(float Change) { HealthPoints += Change; OnHealthChanged.Invoke(); } public void Die() { Destroy(gameObject); } } public class Health : MonoBehavior { public float HealthPoints { get { return _healthpoints; } set { _healthpoints = value; if(_healthpoints <= 0 ) { Destroy(gameObjects); } } } private float _healthpoints = 100f; } public class Health : MonoBehaviour { public float HealthPoints = 100f; private void Update() { if (HealthPoints <- 0) Destroy(gameObject); } } `get` and `set` are the clear indicators that a C# property is being used.

1.

A

2.

B

3.

C

4.

D

Q 47 / 47