Documentation

Unity Spark

Open Unity Spark

Unity Spark

Set tags and layers

Assign tags and layers to objects, create new ones, and rename or remove them in the Unity Spark Inspector window.
Read time 1 minuteLast updated 3 hours ago

Tags label objects so your scripts can find them, such as
Player
or
Enemy
. Layers sort objects into groups. For example, a camera can use its Culling Mask to draw only some layers.

Assign a tag or layer

To assign a tag or layer to an object:
  1. Select the tag button or the layer button at the top of the Inspector window. Its tooltip shows the current value, such as Tag: Untagged.
  2. Select a tag or layer from the list. To create a new one, enter its name in the search box and select Create "name".
    Unity Spark assigns the new tag or layer to the object immediately.
When you select several objects, the Tag and Layer lists appear under the header and set the tag or layer of every selected object.

Rename or remove tags and layers

To rename or remove tags and layers, select Add Tag or Add Layer at the bottom of the list. Tags & Layers opens, with sections for Tags, Layers, and Sorting Layers. You can't change built-in entries, which are grayed out. You can have up to 24 layers of your own.

Ask the assistant to assign tags

You can also ask the AI assistant to assign tags for you, for example,
Tag all the coins as Collectible.

Additional resources