Version: 2017.2
public static string unityVersion ;

説明

Unity のバージョンを返す。

using UnityEngine;
using System.Collections;

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