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

[WORKED AROUND] [WebGL] opening a file

Discussion in 'Web' started by mnml_, Jun 17, 2015.

  1. mnml_

    mnml_

    Joined:
    Jun 17, 2015
    Posts:
    44
    I want to open a file from my webgl-app

    so I wrote a .jslib that appends an <input type="file"... to the body and then .click()'s it.

    all my debugging-alerts show up, but the open file dialog won't.

    when i try the same code in codepen it works thou..: http://codepen.io/anon/pen/bdrOEP?editors=101
     
  2. mnml_

    mnml_

    Joined:
    Jun 17, 2015
    Posts:
    44