0% found this document useful (0 votes)
48 views12 pages

Slide #4-Introduction To Components

Components are the basic building blocks of game objects in Unity. They define an object's characteristics and differentiate it from others. Common components include Transform, which determines an object's position, rotation and scale; Mesh Filter and Mesh Renderer, which work together to display 3D meshes; Rigidbody, which allows objects to be affected by physics; and Camera, which renders the game world for the player. Components are attached to game objects and configured in the inspector.

Uploaded by

Aurangzeb Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views12 pages

Slide #4-Introduction To Components

Components are the basic building blocks of game objects in Unity. They define an object's characteristics and differentiate it from others. Common components include Transform, which determines an object's position, rotation and scale; Mesh Filter and Mesh Renderer, which work together to display 3D meshes; Rigidbody, which allows objects to be affected by physics; and Camera, which renders the game world for the player. Components are attached to game objects and configured in the inspector.

Uploaded by

Aurangzeb Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Game Development

Introduction to Components
Component
Components are the nuts & bolts of objects and behaviors in a
game.

They are the functional pieces of every GameObject.

Defines the characteristics & differentiate from others objects.

Component is contained in GameObject.

You can always use the Inspector to see which Components are
attached to the selected GameObject.

Component consist of different properties.

You will use the Inspector to change all the properties of any
Component (including scripts).
Lets see some famous & useful
components
Transform
Transform component determines the Position, Rotation, and Scale of
each object in the scene.

Every GameObject has a Transform.

The position, rotation and scale values of a Transform are measured


relative to the Transforms parent.

If the Transform has no parent, the properties are measured in world


space.
Mesh Filter
The Mesh Filter takes a mesh from your assets and passes it
to the Mesh Renderer for rendering on the screen.
Meshes
Meshes make up a large part of your 3D worlds.

Unity does not include modelling tools.

Unity have great interactivity with most 3D modelling packages.

Unity can also import, through : Max, Maya, Blender, Cinema4D, Modo, Lightwave &
Cheetah3D files, e.g. .MAX, .MB, .MA etc.
Mesh Renderer
Takes the geometry from the Mesh Filter and renders it at
the position defined by the objects Transform component.
Rigidbody
Enable your GameObjects to act under the control of physics.

Rigidbody can receive forces and torque to make your objects move in
a realistic way.

GameObject must contain a Rigidbody to be influenced by gravity, act


under added forces via scripting,
Box-Collider
The Box Collider is a basic cube-shaped collision primitive.
Rigidbody
Enable your GameObjects to act under the control of physics.

Rigidbody can receive forces and torque to make your objects move in
a realistic way.

GameObject must contain a Rigidbody to be influenced by gravity, act


under added forces via scripting,
Camera
Cameras are the devices that capture and display the world
to the player.
Content Source

http://docs.unity3d.com/Manual.html

You might also like