Unity 检查支持的.NET版本

来源:互联网 发布:德国公开赛 知乎 编辑:程序博客网 时间:2024/05/24 22:46

方法一:

using UnityEngine;using System;using System.Reflection;

public class TestVersion : MonoBehaviour{    void Start()    {        //TestVersion        Type type = Type.GetType("Mono.Runtime");        if (type != null)        {            MethodInfo info = type.GetMethod("GetDisplayName", BindingFlags.NonPublic | BindingFlags.Static);            if (info != null)                Debug.Log(info.Invoke(null, null));        }    }}

方法二:

在PlayerSetting中,找




原创粉丝点击