您当前的位置: 首页 >  unity
  • 5浏览

    0关注

    193博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Unity在检视面板上显示嵌套的多个list

我寄人间雪满头丶 发布时间:2020-10-15 12:08:09 ,浏览量:5

要把显示的数据类前面加上[System.Serializable]序列化。

	//初始的数据类
    [System.Serializable]
    public class Content
    {
        public string content;
    }

	//中间类
    [System.Serializable]
    public class Contents
    {
        public List contents;
    }
	
    public class ShowContents : MonoBehaviour
    {
        public List test;
    }
关注
打赏
1648518768
查看更多评论
立即登录/注册

微信扫码登录

0.2574s