unity3d學習日記:使用[System.Serializable]在inspector面板內顯示自定義數據類型類實例對象的內部數據

在unity裏,自定義數據類型沒法顯示在inspectior面板裏,須要對定義數據類型的類或者結構體使用[System.Serializable]。效果如圖:this using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test : MonoBehaviour {
相關文章
相關標籤/搜索