Metro 常见问题:WACK
从 09-14 版本开始,Unity 将通过 WACK 测试,如果在脚本中使用不支持的 API,可能无法通过部分测试。
Windows RT 设备专用 WACK - http://msdn.microsoft.com/en-us/windows/apps/jj572486.aspx。
下表列出了未通过'支持的 API 测试' 时备用的函数/类,所列的函数/类不全,以后会逐步补充。
不支持的函数/类 | 更多信息 | 备用函数/类 |
Hashtable | System.Collections.Generic.Dictionary | |
ArrayList | System.Collections.Generic.List | |
Stack | System.Collections.Generic.Stack | |
System.Type::op_equality | 对比两个类型时使用该函数,如 Type t; bool res = t == typeof (Vector3); | System.Type.Equals |
String.Format | 不再有 String.Format(string fmt, object arg1) 和类似的重载 | String.Format(fmt, new object[]{...}); |