Application.unityVersion
public static string unityVersion;
Description 描述
The version of the Unity runtime used to play the content.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { print("Version of the runtime: " + Application.unityVersion); } }