12 Essential Unity or Unity3D Interview Questions and Answers - Toptal®
12 Essential Unity or Unity3D Interview Questions and Answers - Toptal®
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();
}
}
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
Explain why Time.deltaTime should be used to make things that depend on time
operate correctly.
View answer
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
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;
View answer
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 *
* I agree with the Terms and Conditions of Toptal, LLC's Privacy Policy
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
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
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)
Python Blog
About Us
® The World’s Top Talent, On Demand ™ Copyright 2010 - 2021 Toptal, LLC Privacy Policy Website Terms