美文网首页
脚本查看Mono版本

脚本查看Mono版本

作者: 晓龙酱 | 来源:发表于2017-09-15 20:20 被阅读127次
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)); 
}

相关文章

网友评论

      本文标题:脚本查看Mono版本

      本文链接:https://www.haomeiwen.com/subject/jleesxtx.html