创造你的世界
脚本编写
标签和图层
6min
您可以使用Unity的标签和图层功能来开发一个世界。
您可以像在Unity中使用标签功能一样使用它。
❗️ 注意 您最多可以使用64个标签。
![Document image Document image](https://images.archbee.com/fCt3n1oCa8rgNJ8fw9I2N-UcYNgGdxViCtyio6O_osG-20240904-102418.png?format=webp)
以下是为ZEPETO角色设置标签的示例代码。
以下是使用 Tag 函数的示例代码。
![Document image Document image](https://images.archbee.com/fCt3n1oCa8rgNJ8fw9I2N-xqFip0HWudBQRqG0CfWgu-20240904-102418.png?format=webp)
📘 Unity 标签信息 https://docs.unity3d.com/Manual/Tags.html
您可以像在Unity中使用Layer功能一样使用它。
❗️ 注意 您可以使用层号20到27。
![Document image Document image](https://images.archbee.com/fCt3n1oCa8rgNJ8fw9I2N-FubVEHRouvi-jK3sGjlGG-20240904-102418.png?format=webp)
![Document image Document image](https://images.archbee.com/fCt3n1oCa8rgNJ8fw9I2N--nX42yX9mgB405CF-nstW-20240904-102418.png?format=webp)
以下是为ZEPETO角色设置层的示例代码。
以下是使用 Layer 函数的示例代码。
![Document image Document image](https://images.archbee.com/fCt3n1oCa8rgNJ8fw9I2N-oUuP5Nj4msspbZt8iTcfY-20240904-102418.png?format=webp)
📘 Unity 层信息 https://docs.unity3d.com/Manual/Layers.html