Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Application Version - WebGL

Discussion in 'Web' started by MatrixNew, Sep 11, 2023.

  1. MatrixNew

    MatrixNew

    Joined:
    Apr 16, 2020
    Posts:
    69

    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?
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,309
    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.
     
  3. MatrixNew

    MatrixNew

    Joined:
    Apr 16, 2020
    Posts:
    69
    Is there any example of how to get the build version in an html/js file?
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,045
  5. MatrixNew

    MatrixNew

    Joined:
    Apr 16, 2020
    Posts:
    69