Components
Add components to your GameObjects to give them functionality like physics, animations, or interactivity.
Read time 1 minuteLast updated 2 days ago
Components are features you can add to GameObjects to give them specific functionality or behaviors.
Components available in Unity Lite
The following components are available in Unity Lite:Property | Description |
---|---|
Transform | Every GameObject has a Transform component by default. Change the values of this component to change the object's position, rotation, or size. |
Colliders | Colliders define the shape of an object for physical interactions and to detect collisions, clicks or touches. For the different shapes, refer to Collider types. |
Physics | Adjust how objects move and interact with gravity. You can set the mass of the object and choose whether it’s affected by gravity. Tip: Disable physics if you don’t want gravity to affect your GameObject. |
Animation | Add animations to make objects move or change over time. When you add this component, the Animation Tool opens automatically, which allows you to create and manage multiple animations for the same object. For more information, refer to Animation. |
Logic | Attach Lite Logic to give your objects behaviors and interactivity. For example, you can make an object respond to user input or trigger events. For more information, refer to Lite Logic. |
Material | Adjust the object's material to change its appearance. You can edit colors, the shader, and more advanced appearance settings. For more information, refer to Materials. |
Collider types
Collider components come in different shapes to fit your objects. Choose the one that best matches your object's shape for accurate interactions. You can also add multiple colliders to a single GameObject for more complex shapes.Collider type | Description |
---|---|
Box collider | A collider in the shape of a cube. Best for rectangular shapes. |
Sphere collider | A collider in the shape of a sphere. Best for round objects. |
Capsule collider | A collider in the shape of a capsule. Useful for cylindrical shapes or to smooth out corners. Often used on characters. |
Mesh collider | A collider that follows the exact shape of a 3D model for precise collisions. |