Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question How to Run Unity WebGL Project in Electron JS Window for All Desktop Platforms Electron can Run?

Discussion in 'Web' started by Solperano, May 24, 2023.

  1. Solperano

    Solperano

    Joined:
    Mar 15, 2023
    Posts:
    1
    Hi I want my Unity WebGL Project to run on a window of a desktop operation system (Windows, macOS, Linux). And that window is created by Electron JS which is Node.js library. I know some steps: 1st step: Install Node.js: Done, 2nd step: Create Electron project: Done, 3rd step: Create Unity WebGL Project: Done, 4th step: Embed Unity WebGL project to Electron window: NOT DONE!

    So How can I achieve 4th Step?

    Thanks.
     
  2. All_American

    All_American

    Joined:
    Oct 14, 2011
    Posts:
    1,528
    I am attempting the same thing right now. I have the html page as a Electron window and it is not working....but I am not getting the error for not being on a web-server.