Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Application Version - WebGL

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

  1. MatrixNew

    MatrixNew

    Joined:
    Apr 16, 2020
    Posts:
    84

    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:
    7,263
    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:
    84
    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,566
  5. MatrixNew

    MatrixNew

    Joined:
    Apr 16, 2020
    Posts:
    84