美文网首页
查看Unity使用Mono版本

查看Unity使用Mono版本

作者: 晓龙酱 | 来源:发表于2017-11-22 14:30 被阅读80次
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)); 
}

相关文章

网友评论

      本文标题:查看Unity使用Mono版本

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