CREATE YOUR WORLD
Scripting

Tag & Layer

7min

You can use the Tag and Layer functions from Unity for developing a World.

Tag

You can use the Tag function the same way you used it in Unity.

❗️ Caution You can use up to 64 Tags.

Document image


Below is an example code for setting a tag for a ZEPETO character.

TypeScript




Below is an example code for using the Tag function.

TypeScript




Document image


📘 Unity Tag information https://docs.unity3d.com/Manual/Tags.html



Layer

You can use the Layer function the same way you used it in Unity.

❗️ Caution You can use Layers number 20 to 27.

Document image

Document image




The following is an example code to set a layer for the ZEPETO character.

TypeScript




The following is an example code for using the Layer function.

TypeScript




Document image


📘 Unity Layer information https://docs.unity3d.com/Manual/Layers.html



Updated 10 Oct 2024
Doc contributor
Did this page help you?