track: api

difficulty: easy

topic: assets

type: regex

question: Which method loads an asset from a Resources folder at runtime? Answer Class.Method.

answer: (?i)Resources\.Load


track: api

difficulty: easy

topic: lifecycle

type: exact

question: Which method destroys a GameObject or Component? Method name only.

answer: Destroy


track: api

difficulty: easy

topic: instantiation

type: exact

question: Which method creates a copy of a prefab at runtime? Method name only.

answer: Instantiate


track: api

difficulty: easy

topic: debug

type: regex

question: Which call prints a message to the Unity Console? Answer Class.Method.

answer: (?i)Debug\.Log


track: api

difficulty: easy

topic: lifecycle

type: exact

question: Which callback runs each time a component becomes enabled and active? Method name only.

answer: OnEnable


track: api

difficulty: easy

topic: lifecycle

type: exact

question: Which callback runs when a component becomes disabled? Method name only.

answer: OnDisable


track: api

difficulty: medium

topic: math

type: exact

question: Which Mathf method linearly interpolates between a and b by t? Method name only.

answer: Lerp


track: api

difficulty: medium

topic: camera

type: exact

question: Which Camera method converts a world position to screen coordinates? Method name only.

answer: WorldToScreenPoint


track: api

difficulty: medium

topic: physics

type: regex

question: Which method casts a ray and reports the first 3D collider hit? Answer Class.Method.

answer: (?i)Physics\.Raycast


track: api

difficulty: medium

topic: coroutine

type: exact

question: Which class waits a number of seconds in UNSCALED real time inside a coroutine? Class name only.

answer: WaitForSecondsRealtime


track: api

difficulty: medium

topic: editor

type: regex

question: Which attribute makes a MonoBehaviour run in edit mode as well as play mode (Unity 6 preferred)? Attribute name only.

answer: (?i)(ExecuteAlways|ExecuteInEditMode)


track: api

difficulty: medium

topic: scene

type: exact

question: What type does SceneManager.LoadSceneAsync return? Type name only.

answer: AsyncOperation


track: api

difficulty: trap

type: regex

question: In Unity 6, FindObjectsOfType (plural) is deprecated. What is the replacement method? Method name only.

answer: (?i)FindObjectsByType


track: api

difficulty: trap

type: exact

question: Inside FixedUpdate, what does Time.deltaTime return (not the frame delta)? Property name only.

answer: fixedDeltaTime


track: api

difficulty: trap

type: regex

question: In Unity 6, which type can be directly awaited with C# 'await' (unlike a Coroutine)? Type name only.

answer: (?i)Awaitable


track: api

difficulty: trap

topic: find

type: regex

question: Does GameObject.Find return INACTIVE GameObjects? Answer yes or no.

answer: (?i)^\s*no


track: api

difficulty: trap

type: regex

question: Which serialization attribute (added around Unity 2020+) lets a plain C# class with [System.Serializable] also support polymorphism in the Inspector? Attribute name only.

answer: (?i)SerializeReference


track: bug

difficulty: easy

topic: idiom

type: regex

question: To make a field visible to Unity serialization AND hidden in the Inspector, which attribute hides it? Attribute name only.

answer: (?i)HideInInspector


track: bug

difficulty: easy

topic: csharp

type: exact

question: Which C# keyword makes a field shared across all instances of a class? Keyword only.

answer: static


track: bug

difficulty: medium

topic: performance

type: regex

question: Building strings with + inside Update every frame mainly causes what performance problem? One or two words.

answer: (?i)(gc|garbage|allocation|alloc)


track: bug

difficulty: medium

topic: math

type: regex

question: Comparing two floats with == is unreliable. Which Mathf method should you use instead? Answer Class.Method.

answer: (?i)(Mathf\.)?Approximately


track: bug

difficulty: medium

topic: events

type: regex

question: A static event whose handlers are never unsubscribed typically causes what? Two words.

answer: (?i)(memory leak|leak)


track: bug

difficulty: medium

topic: coroutine

type: regex

question: Allocating 'new WaitForSeconds' every frame is wasteful; caching one avoids what? One or two words.

answer: (?i)(gc|garbage|allocation|alloc)


track: bug

difficulty: medium

topic: csharp

type: exact

question: Which interface must a class implement to be usable in a foreach loop? Interface name only.

answer: IEnumerable


track: bug

difficulty: trap

topic: lifecycle

type: regex

question: Does Start() always run before the first Update() on the same component? Answer yes or no.

answer: (?i)^\s*yes


track: bug

difficulty: trap

topic: coroutine

type: regex

question: Can you successfully StartCoroutine on a MonoBehaviour whose GameObject is INACTIVE? Answer yes or no.

answer: (?i)^\s*no


track: bug

difficulty: trap

topic: lifecycle

type: regex

question: Does Destroy(gameObject) remove it immediately in the same frame? Answer yes or no.

answer: (?i)^\s*no


track: bug

difficulty: trap

topic: serialization

type: regex

question: Will [SerializeField] on a C# PROPERTY (with get/set) serialize it by default? Answer yes or no.

answer: (?i)^\s*no


track: bug

difficulty: trap

topic: physics

type: regex

question: For OnCollisionEnter to fire, at least one of the two objects must have which component? Component name only.

answer: (?i)Rigidbody


track: api

difficulty: medium

topic: components

type: exact

question: Which method gets a component from the GameObject or any of its children? Method name only.

answer: GetComponentInChildren