ScriptableObject
ZepetoScriptableObject รองรับ Unity ScriptableObject. ZepetoScriptableObject เป็นตัวเก็บข้อมูลที่บันทึกข้อมูลจำนวนมาก เช่น การตั้งค่าข้อมูลโลกและตัวเลือกตัวละคร.
ในการสร้างไฟล์ ZepetoScriptableObject ใหม่ ให้คลิกที่ไอคอน [+] ที่มุมซ้ายบนของแผงโครงการ หรือคลิกที่ Assets → Create → ZEPETO → ScriptableObject.

ZepetoScriptableObject ที่สร้างขึ้นใหม่จำเป็นต้องเชื่อมต่อโดยการสร้างสคริปต์ที่มีคลาสข้อมูลที่กำหนดไว้.

สร้างไฟล์ ZEPETOScript ใหม่ และประกาศข้อมูลที่คุณจะใช้เป็นตัวแปรสมาชิก.
นี่คือตัวอย่างโค้ดบางส่วนที่สามารถใช้เป็นข้อมูลได้.
เมื่อคุณเชื่อมโยง ZEPETOScript กับคลาสข้อมูลที่กำหนดไปยัง ZepetoScriptableObjects คุณจะเห็นข้อมูลเหล่านั้นในหน้าต่าง Inspector ดังที่แสดงด้านล่าง

สร้างไฟล์ ZEPETOScript เพื่อเรียกข้อมูลจาก ZepetoScriptableObject
นำเข้า ZepetoScriptableObject จาก ZEPETOScript และนำเข้าประเภทข้อมูลที่คุณได้ประกาศไว้ด้วย

ประกาศ ZepetoScriptableObject เป็นคุณสมบัติใน ZEPETOScript.
เปิดหน้าต่าง Inspector ใน ZEPETOScript เพื่อกำหนดค่าให้กับคุณสมบัติของ ZepetoScriptableObject ตามที่แสดงด้านล่าง.

ตัวอย่างนี้แสดงให้เห็นว่าคุณสามารถใช้ ZepetoScriptableObject และเข้าถึงค่าของมันได้อย่างไร.
ในการเข้าถึงตัวแปรประเภทพื้นฐาน ให้ประกาศเป็นประเภททั่วไปหรือแปลงโดยใช้การแคสต์ประเภท เช่น ตัวอย่างที่แสดงด้านล่างนี้.
ตรวจสอบตัวอย่างโค้ดทั้งหมดสำหรับ ScriptableObject.
