脚本查看Mono版本

2017-09-15  本文已影响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)); 
}
上一篇 下一篇

猜你喜欢

热点阅读