สร้างโลกของคุณเอง
การเขียนสคริปต์
แท็ก & เลเยอร์
6min
คุณสามารถใช้ฟังก์ชัน Tag และ Layer จาก Unity ในการพัฒนาโลกได้
คุณสามารถใช้ฟังก์ชัน Tag ในลักษณะเดียวกับที่คุณใช้ใน Unity
❗️ ระวัง คุณสามารถใช้แท็กได้สูงสุด 64 แท็ก

ด้านล่างนี้คือตัวอย่างโค้ดสำหรับการตั้งค่าแท็กสำหรับตัวละคร ZEPETO
ด้านล่างนี้คือตัวอย่างโค้ดสำหรับการใช้ฟังก์ชัน Tag.

📘 ข้อมูล Tag ของ Unity https://docs.unity3d.com/Manual/Tags.html
คุณสามารถใช้ฟังก์ชัน Layer ในลักษณะเดียวกับที่คุณใช้ใน Unity.
❗️ ระวัง คุณสามารถใช้ Layers หมายเลข 20 ถึง 27.


ต่อไปนี้คือตัวอย่างโค้ดในการตั้งค่าเลเยอร์สำหรับตัวละคร ZEPETO.
ต่อไปนี้คือตัวอย่างโค้ดสำหรับการใช้ฟังก์ชัน Layer.

📘 ข้อมูล Layer ของ Unity https://docs.unity3d.com/Manual/Layers.html
อัปเดต 11 Oct 2024

หน้านี้ช่วยคุณได้หรือไม่?