GameObject
A GameObject is a fundamental entity used to represent objects within a scene in Unity. It acts as a container for components that define an object’s data and behavior. Every GameObject has a Transform component by default, which stores its position, rotation, and scale in the world or hierarchy. To give a GameObject functionality, developers attach components such as scripts, renderers, colliders, rigidbodies, lights, audio sources, cameras, and particle systems.
GameObjects are organized in a hierarchical structure. They can have parent-child relationships, where children inherit their
The behavior of a GameObject is defined by its components. In Unity, scripting typically relies on lifecycle
Prefabs are reusable templates created from GameObjects or hierarchies. A prefab can be instantiated at runtime
GameObjects can be identified and managed using tags and layers, and their data is serialized as part