Version: 5.4
public static string unityVersion ;

説明

Unity のバージョンを返す。

using UnityEngine;
using System.Collections;

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