← All Unity Flashcard Decks

Unity Scripting and C# Flashcards

6 cards from real Unity practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 Unity Scripting and C# flashcards as text
  1. What is the base class for all Unity scripts that attach to GameObjects?

    Answer: MonoBehaviour

    MonoBehaviour is the base class for Unity component scripts, providing lifecycle methods like Start(), Update(), and OnEnable().

  2. In Unity C#, what is a Coroutine used for?

    Answer: Pausing execution and resuming it over multiple frames without blocking the main thread

    Coroutines use IEnumerator and yield return statements to spread execution across multiple frames while remaining on the main thread.

  3. What does the [SerializeField] attribute do in Unity?

    Answer: Makes a field visible in the Inspector even if it is private

    [SerializeField] exposes a private field in the Unity Inspector without changing its access modifier, maintaining encapsulation.

  4. Which Unity event function is called exactly once when a script's GameObject first becomes active?

    Answer: Start()

    Start() is called once before the first frame Update() if the script component is enabled, making it ideal for initialization that depends on other objects being ready.

  5. What is the purpose of the 'static' keyword on a Unity C# field?

    Answer: It makes the field shared across all instances of the class rather than per-instance

    A static field belongs to the class itself rather than any individual instance, so all scripts share the same value regardless of how many exist.

  6. In Unity, what does Object.Destroy() do when passed a GameObject?

    Answer: Schedules the GameObject for removal at the end of the current frame

    Destroy() schedules the object for deletion at the end of the current frame, so it remains accessible during the rest of the current frame's execution.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. unity.com — Eligibility, test delivery, exam format, passing score, renewal, retake policy, score release, time limit, score validity · verified Oct 2026