Application.unityVersion 版本


static var unityVersion : string

Description描述

The version of the Unity runtime used to play the   content.

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

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {print("Version of the runtime: " + Application.unityVersion);}}
print ("Version of the runtime: " + Application.unityVersion);


,