Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Testing WebGL HTML5 Builds, Help!

Discussion in 'Web' started by renman3000, Nov 16, 2017.

  1. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
    Hi there,
    I am looking to publish with Unity WebGl, HTML 5 but am having difficulty in doing so.

    I have built out the file, but am unsure of how to play it over a browser to test.

    So, what is the best method to test builds?

    Thanks!
     
  2. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,910
    Just double-click the index.html file, or click-drag it into the url bar of a browser.
     
    renman3000 likes this.
  3. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697

    Doesn't work. Only Build and Run, which is very time consuming.
     
  4. sumpfkraut

    sumpfkraut

    Joined:
    Jan 18, 2013
    Posts:
    242
    It should work. But only with firefox.
     
    renman3000 likes this.
  5. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697

    It does.
    THANKS!!
     
  6. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,910
    You have to right-click the chrome icon > Properties > Target should read "...chrome.exe --allow-file-access-from-files".
     
  7. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697

    I use Safari, normally.