CREATE YOUR WORLD
Scripting
Tag & Layer
7min
Unity의 태그 및 레이어 기능을 사용하여 월드를 개발할 수 있습니다.
Unity에서 사용했던 것과 동일한 방식으로 태그 기능을 사용할 수 있습니다.
❗️ 주의 최대 64개의 태그를 사용할 수 있습니다.

아래는 ZEPETO 캐릭터에 태그를 설정하는 예제 코드입니다.
아래는 Tag 함수를 사용하는 예제 코드입니다.

📘 유니티 태그 정보 https://docs.unity3d.com/Manual/Tags.html
Unity에서 사용했던 것과 같은 방식으로 Layer 기능을 사용할 수 있습니다.
❗️ 주의 Layers 번호 20에서 27을 사용할 수 있습니다.


다음은 ZEPETO 캐릭터의 레이어를 설정하는 예제 코드입니다.
다음은 Layer 함수를 사용하는 예제 코드입니다.

📘 유니티 레이어 정보 https://docs.unity3d.com/Manual/Layers.html