U3D中IOS平臺泛型方法盡少使用

U3D的IOS最小運行庫use micro mscorlib是不包含泛型反射方法的,如FieldType.GetGenericArguments方法。因此儘可能少用List而直接使用array。html

 

另外請不要在IOS平臺上使用任何(動態)JIT編譯的方法,由於IOS平臺是基於(靜態)AOT編譯的,例如PropertyInfo的GetValue就是這樣的方法,另外Linq也有部分方法,因此這樣會致使編譯失敗。也就是說禁止任何形式的動態建立方法和泛型方法。spa

 

 

參考文章htm

http://ravenw.com/blog/2011/11/08/limitations-of-mono-with-full-aot/blog

http://www.cnblogs.com/tinytiny/archive/2013/07/19/3200448.html排序

http://blog.sina.com.cn/s/blog_5b6cb9500101gnrl.html  [Unity3D]關於IOS下字典排序的問題(Attempting to JIT compile method)it

http://www.mono-project.com/AOTio

相關文章
相關標籤/搜索