討論串[程式] 請教 Unity3D script中 Generic List寫法
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 7→)留言9則,0人參與, 最新作者fsyoung (統一獅總冠軍)時間12年前 (2012/06/17 23:33), 編輯資訊
1
0
0
內容預覽:
[SerializeField]. public class Gen<T>. {. public T foo;. }. public class CTest : MonoBehaviour. {. public Gen<int> T1;. public List< Gen<int> > T2;. }

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者fsyoung (統一獅總冠軍)時間12年前 (2012/06/24 08:45), 編輯資訊
0
0
2
內容預覽:
在answers.unity 有人給答案了. Unity 不支援 Generic Type. http://answers.unity3d.com/questions...he-editor.html. http://answers.unity3d.com/questions...-generics
首頁
上一頁
1
下一頁
尾頁