0% found this document useful (0 votes)
235 views

12 Essential Unity or Unity3D Interview Questions and Answers - Toptal®

unity questions

Uploaded by

morepal2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
235 views

12 Essential Unity or Unity3D Interview Questions and Answers - Toptal®

unity questions

Uploaded by

morepal2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Top 3% Why Clients Enterprise Community Blog About Us Apply as a Freelancer Hire Top Talent Log In

12 Essential Unity or Unity3D Interview


Questions *
Looking for Freelance Unity or Unity3D Developer jobs? Design your lifestyle as a Unity or Unity3D developer with Toptal.

Submit an Interview Question

Answer the following questions about threading. Explain your answers:


Can
By continuing to use threads
this site be
you agree to our used to modify a Texture on runtime?
Cookie Policy. Got it

Can threads be used to move a GameObject on the scene?


Consider the snippet below:
class RandomGenerator : MonoBehaviour
{
public float[] randomList;

void Start()
{
randomList = new float[1000000];
}

void Generate()
{
System.Random rnd = new System.Random();
for(int i=0;i<randomList.Length;i++) randomList[i] = (float)rnd.NextDouble();
}
}

Improve this code using threads, so the 1000000 random number


generation runs without spoiling performance.
View answer

Explain what a vertex shader is, and what a pixel shader is.
Hide answer

Vertex shader is a script that runs for each vertex of the mesh, allowing the developer to apply transformation matrixes, and other
operations, in order to control where this vertex is in the 3D space, and how it will be projected on the screen.

Pixel shader is a script that runs for each fragment (pixel candidate to be rendered) after three vertexes are processed in a mesh’s
triangle. The developer can use information like the UV / TextureCoords and sample textures in order to control the final color that
will be rendered on screen.

Explain why deferred lighting optimizes scenes with a lot of lights and
elements.
View answer

Apply to Join Toptal's Development Network


Apply as a Freelancer
and enjoy reliable, steady, remote Freelance Unity or Unity3D Developer Jobs.

Explain why Time.deltaTime should be used to make things that depend on time
operate correctly.
View answer

Explain why vectors should be normalized when used to move an object.


View answer

Consider the following code snippet below:


class Mover : MonoBehaviour
{
Vector3 target;
float speed;

void Update()
{

}
}

Finish this code so the GameObject containing this script moves with constant
speed towards target , and stop moving once it reaches 1.0, or less, units of

distance.
View answer

Can two GameObjects , each with only an SphereCollider , both set as trigger and raise
OnTrigger events? Explain your answer.

View answer

Which of the following examples will run faster?


1000 GameObjects , each with a MonoBehaviour implementing the Update callback.
One GameObject with one MonoBehaviour with an Array of 1000 classes, each
implementing a custom Update() callback.
Explain your answer.
View answer

Explain, in a few words, what roles the inspector, project and hierarchy
panels in the Unity editor have. Which is responsible for referencing the
content that will be included in the build process?
View answer

Arrange the event functions listed below in the order in which they will be
invoked when an application is closed:
Update()
OnGUI()
Awake()
OnDisable()
Start()
LateUpdate()
OnEnable()
OnApplicationQuit()
OnDestroy()

View answer

Explain the issue with the code below and provide an alternative
implementation that would correct the problem.
using UnityEngine;
using System.Collections;

public class TEST : MonoBehaviour {


void Start () {
transform.position.x = 10;
}
}

View answer

What are the benefits of having a visualization mode for rendering


optimization, as shown on the picture bellow?

View answer

* There is more to interviewing than tricky technical questions, so these are intended merely as a guide. Not every “A” candidate worth hiring will be able to
answer them all, nor does answering them all guarantee an “A” candidate. At the end of the day, hiring remains an art, a science — and a lot of work.

Submit an interview question
Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of
Toptal, LLC.

Name *

Email *

Enter Your Question Here … *

Enter Your Answer Here … *

* I agree with the Terms and Conditions of Toptal, LLC's Privacy Policy

* All fields are required

Submit a Question

Johnathan Hebert
Freelance Unity or Unity3D Developer
United States Toptal Member Since December 13, 2016

Johnathan has 15 years of experience writing web apps that span consumer productivity software to mission-critical
financial trading platforms. He has extensive knowledge of front-end JavaScript and browser APIs as well as significant
experience with popular frameworks and libraries like React and Redux. Johnathan's deep full-stack experience include…
Show More

View Johnathan Unity or Unity3D JavaScript React TensorFlow CSS C++ React Redux

React Router Windows Front-end Web Development User Experience (UX)

Ember.js

Linas Ozeraitis
Freelance Unity or Unity3D Developer
Austria Toptal Member Since August 13, 2017

Linas is a creative full-stack senior developer. With 10+ years of experience in a broad range of software development
projects, he keeps a strong focus on productivity and quality. Linas looks at software development as a craft, and
constantly works on improving his own skills and knowledge.
Show More

View Linas Unity or Unity3D JavaScript Three.js Angular .NET React C#

HTML5 NoSQL Firebase MongoDB CSS Sass

Nebojsa Brindic
Freelance Unity or Unity3D Developer
Serbia Toptal Member Since December 8, 2016

Nebojsa has a master’s degree in software engineering along with a decade of development experience, including
working in a team that’s passed through two startup accelerators with gaming projects. Experiencing this has given him a
solid background in game development and entrepreneurship. Recently, he's been specializing in VR development with…
Show More

View Nebojsa
Unity or Unity3D C# Microsoft Visual Studio Virtual Reality (VR)

Looking for Unity or Unity3D Developers?


Looking for Unity or Unity3D Developers? Check out Toptal’s Unity or Unity3D developers.

Toptal Connects the Top 3% of Freelance


Talent All Over The World.

Join the Toptal community. Learn more

Skills in High Demand by Clients About Contact Social

React.js Top 3% Contact Us

Go Clients Press Center

Java Toptal Talent Assessment Careers

Ruby on Rails Ultimate Freelancing Guide FAQ

Python Blog

React Native Community

About Us

® The World’s Top Talent, On Demand ™ Copyright 2010 - 2021 Toptal, LLC Privacy Policy Website Terms

You might also like