← 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 a ScriptableObject in Unity primarily used for?

    Answer: Storing shared data assets that exist independently of scene GameObjects

    ScriptableObjects are data containers saved as assets, useful for sharing configuration data between scenes without duplicating it in each GameObject.

  2. Which method would you use to find a GameObject in the scene by its name at runtime?

    Answer: GameObject.Find()

    GameObject.Find() searches the scene hierarchy by name, but it's expensive and should be cached in Start() rather than called every frame.

  3. In Unity C#, what does the 'ref' keyword do when used in a method parameter?

    Answer: Passes the variable by reference so the method can modify the caller's variable

    The ref keyword passes a variable by reference, allowing the called method to read and write the original variable in the caller's scope.

  4. What is the Unity Event System and why is it useful in scripts?

    Answer: A publisher-subscriber pattern using UnityEvent that decouples event senders from receivers

    UnityEvent implements a publisher-subscriber pattern, allowing scripts to broadcast events without direct references to the listeners.

  5. What does the 'RequireComponent' attribute do in Unity?

    Answer: Automatically adds a required component when this script is added to a GameObject

    [RequireComponent(typeof(Rigidbody))] ensures the specified component is automatically added (and cannot be removed) when your script is attached.

  6. In Unity, what is the difference between Awake() and Start()?

    Answer: Awake() runs when the object is loaded regardless of component enabled state; Start() runs only if the component is enabled

    Awake() fires immediately when the object is instantiated even if the component is disabled, while Start() only fires when the component is enabled and before its first Update().

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