version
Returns application version number (Read Only).
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static string version { get; }
Remarks
This function returns the current version of the application. This is read-only. To set the version number in Unity, go to Edit>Project Settings>Player.
Unity uses PlayerSettings.bundleVersion on all platforms, so returns that same version string at runtime.
Application.versionExamples
using UnityEngine;public class ApplicationVersionExample : MonoBehaviour{ void Start() { // This prints the value set in Edit>Project Settings>Player>Version (default 0.1). Debug.Log("Application Version : " + Application.version); }}