Unity - Scripting API: PlayerSettings.bundleVersion
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
public static string bundleVersion;
Description
The application’s global version number string.
This is the master version string for your project, corresponding to the Version field in the Player Settings UI. It is shared across all platforms and is the value returned by Application.version at runtime.
How this string is used depends on the target platform:
-
Android: Maps to
versionName. This is the user-facing version displayed in the Google Play Store. -
iOS / macOS: Maps to
CFBundleShortVersionString. This is theVersionfield in the Xcode project and the marketing version in the App Store. -
Windows / Linux: Populates the executable's file metadata (specifically the
File VersionandProduct Versionfields on Windows). - WebGL: Included in the build's metadata.
Note: While this is the user-facing version, many platforms require an internal build number for store submissions. Refer to PlayerSettings.Android.bundleVersionCode, PlayerSettings.iOS.buildNumber, PlayerSettings.tvOS.buildNumber, PlayerSettings.VisionOS.buildNumber.