查看Unity使用Mono版本

来源:互联网 发布:微信js sdk 分享 编辑:程序博客网 时间:2024/05/18 00:45
Type type = Type.GetType("Mono.Runtime");if (type != null){                                              MethodInfo displayName = type.GetMethod("GetDisplayName",BindingFlags.NonPublic | BindingFlags.Static);    if (displayName != null)                           Debug.Log(displayName.Invoke(null, null)); }