Version: 2017.1
public static string unityVersion ;

描述

用于播放内容的 Unity 运行时版本。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { print("Version of the runtime: " + Application.unityVersion); } }