方法一:
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中找