1.自定义一个类
using UnityEngine; using System.Collections; [System.Serializable]//表示该类可以被序列化 public class Test01{ public GameObject Prafab; public int index; public float speed; }
2.序列化该类
using UnityEngine; using System.Collections; public class Test02 : MonoBehaviour { public Test01[] test; }