Introduction to components, tags, and layers
Understand how components give objects their appearance and behavior, and how tags and layers label and group objects in Unity Spark.
Read time 1 minuteLast updated 3 hours ago
Components give an object its appearance and behavior. A Rigidbody component makes it fall, a BoxCollider component makes it solid, and an AudioSource component makes it play sound. The Inspector window shows the components on the selected object and lets you add, change, copy, and remove them.
Combine components on an object
Add several components to an object to give it more functionality and behaviors. When you add a component, Unity Spark adds a section for it to the Inspector window.
Every object has a Transform component, which sets its position, rotation, and scale. You can't move or remove the Transform component.
Tags and layers
Tags label objects so your scripts can find them, such as or . Layers sort objects into groups. For example, a camera can use its Culling Mask to draw only some layers.
PlayerEnemyAsk the assistant to set up components
The AI assistant can add and set up components for you. Describe the result you want, for example:
Make the crate fall and bounce when it lands.Tag all the coins as Collectible.