在Inspector面板內顯示自定義的類的數組

想要在Inspector裏顯示本身的數組而且能夠更改數組大小以及裏面的數據。數組 如圖ide 只要在本身定義的類前加上[System.Serializable ]spa 代碼:blog using UnityEngine; using System.Collections; [System.Serializable ] public class te { int a; int b; } publi
相關文章
相關標籤/搜索