Search Issue Tracker
By Design
Votes
0
Found in
2017.3.1p3
Issue ID
1024033
Regression
No
[WSA] Application.version does not return version number
Steps to reproduce:
1. Open the attached project
2. Switch platform to Windows Store
3. Open the test.unity scene
4. Click on "File" -> "Build Settings"
5. Click on "Player Settings"
6. In the Inspector click on "Publishing Settings". You will find Publishing Settings -> Packaging -> Version. Observe, version is 2.2.0.0
7. Play the scene
8. Console prints 6.0 (Which is Windows Standalone Version under
Standalone -> Other Settings -> Mac App Store Options -> Version)
Note:
Some behavior with the UWP builds
Expected results: Calling Application.version from the Editor on UWP platform should return Version under UWP -> Publishing Settings -> Packaging -> Version
Actual results: Calling Application.version from the Editor on UWP platform returns the Windows Standalone Version under
Standalone -> Other Settings -> Mac App Store Options -> Version
Reproduced with: 2017.1.3p3, 2017.2.2p3, 2017.4.1f1, 2018.2.0a7, 2018.2.0a8
This is intended functionality; the UWP version can be read through WinRT API calls:
#if ENABLE_WINMD_SUPPORT
var ver = Windows.ApplicationModel.Package.Current.Id.Version;
Debug.Log(string.Format("{0}.{1}.{2}.{3}", ver.Major, ver.Minor, ver.Revision, ver.Build));
#endif
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- WebGL builds report wrong screen resolution if "matchWebGLToCanvasSize" is set to "false"
- List<T> in the Inspector does not update values when changed through Dropdown menu
- Crash on keywords::LocalSpace::Find when reimporting specific assets
- “Command Line Arguments” window in Hub becomes distorted with long project names
- "Save" button is displayed as active in the Hub "Set project display name" window
Add comment