Version: 2018.2
public static string unityVersion ;

説明

Unity のバージョンを返す。

using UnityEngine;

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