
In the program settings in “version” I specify the version “0.13”

When creating a build, a generated html file that indicates the version of the build (red arrow)
Since I’m using a different html file, is there any way to get the build version from the “Build/EnD.loader.js” file?
Application.version in C#
If you need the version in JS use the usual JS-C# interface to either pass the version to a JS function call or use JS to request the version from the C# API.
Is there any example of how to get the build version in an html/js file?
alternatives could be,
- custom postbuild script, that copies version.txt into build folder (that you can then read with js)
- or that custom onpostprocessbuild could inject version code into your current template (replace placeholder string)
- or if you have your own template inside Assets/webgltemplates/ folder, can use “PRODUCT_VERSION” tag Unity - Manual: WebGL templates
mgear - thx a lot!