0
0
Unityframework~5 mins

Instantiating objects at runtime in Unity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does it mean to instantiate an object at runtime in Unity?
It means creating a new copy of a game object while the game is running, not before. This lets the game add new things like enemies or items as needed.
Click to reveal answer
beginner
Which Unity method is commonly used to create objects during gameplay?
The method is Instantiate(). It makes a copy of a prefab or existing object in the scene.
Click to reveal answer
beginner
What is a prefab in Unity and why is it important for instantiating objects?
A prefab is a saved template of a game object. It lets you create many copies easily during the game without setting up each one manually.
Click to reveal answer
intermediate
How do you specify the position and rotation when instantiating an object?
You pass the position and rotation as arguments to Instantiate(), usually using Vector3 for position and Quaternion for rotation.
Click to reveal answer
intermediate
What is the difference between instantiating an object and enabling/disabling an existing object?
Instantiating creates a new object copy at runtime. Enabling/disabling just turns an existing object on or off without making new copies.
Click to reveal answer
Which method do you use to create a new game object from a prefab during gameplay in Unity?
ASpawn()
BCreateObject()
CInstantiate()
DNew()
What type of Unity asset is best used as a template for instantiating multiple objects?
APrefab
BScript
CMaterial
DScene
When instantiating an object, which data type is used to set its position?
AQuaternion
BVector3
CTransform
DGameObject
What happens if you instantiate an object without specifying rotation?
AIt uses the prefab's default rotation
BIt causes an error
CIt rotates randomly
DIt faces the camera
Which of these is NOT a reason to instantiate objects at runtime?
ATo create enemies dynamically
BTo add effects like explosions
CTo spawn items when needed
DTo save memory by reusing objects
Explain how to instantiate a prefab at a specific position and rotation in Unity.
Think about the parameters you pass to Instantiate.
You got /4 concepts.
    Describe the difference between instantiating a new object and enabling an existing object in Unity.
    Focus on what happens behind the scenes with objects.
    You got /4 concepts.