Application.unityVersion

static var unityVersion : String

Description

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

JavaScript
print ("Version of the runtime: " + Application.unityVersion);

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
print(('Version of the runtime: ' + Application.unityVersion))