unity3d学习日记:使用[System.Serializable]在inspector面板内显示自定义数据类型类实例对象的内部数据

在unity里,自定义数据类型没法显示在inspectior面板里,须要对定义数据类型的类或者结构体使用[System.Serializable]。效果如图:this using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test : MonoBehaviour {
相关文章
相关标签/搜索