วิธีการเขียน Tool เบื้องต้น
1. ทำการสร้างไฟล์ C# สำหรับอ้างอิงตัวแปร (ตัวอย่างชื่อ Item.cs)
using UnityEngine;
using System.Collections;
public class Item : MonoBehaviour
{
public int id { get; set; }
public string name { get; set; }
public string detail { get; set; }
public int amount { get; set; }
}
2. จากนั้นทำการสร้าง Folder ชื่อ Editor ภายใน Folder สร้างไฟล์ C# (ตัวอย่างขื่อ ItemEditor.cs)