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

How can I share a WebGL project?

Discussion in 'Unity Connect' started by Tomer-Barkan, Jan 25, 2017.

  1. Tomer-Barkan

    Tomer-Barkan

    Joined:
    Jul 31, 2012
    Posts:
    150
    I've created a game with Unity in GGJ2017, and put it in Kongregate and Newgrounds. Now when I created a project in Unity Connect, I wanted to show it there.

    There's no option to actually upload the project, only a link, and when I try linking the newgrounds page it doesn't work (it shows the page but doesn't let you play the game).

    Is there any way to do this, assuming I don't have my own server on which I can host it?
     
  2. Deleted User

    Deleted User

    Guest

    You can use Firebase Hosting and attach a custom domain onto it if you want to for free.
     
  3. Tomer-Barkan

    Tomer-Barkan

    Joined:
    Jul 31, 2012
    Posts:
    150
    Thanks, I'll give it a try.
     
  4. Tomer-Barkan

    Tomer-Barkan

    Joined:
    Jul 31, 2012
    Posts:
    150
    Ok, I followed these instructions, and it seems to deploy fine, but when I open the page I get this error:

    This same builds works fine when uploading to newgrounds/kongregate.

    Any ideas?

    This is the link: https://jaffa-exile.firebaseapp.com/
     
  5. sokki

    sokki

    Joined:
    Jan 31, 2015
    Posts:
    166
    Try linking it from Kongregate? And do you need link of the website, or link (iframe) of the game itself? I've seen webgls on Dropbox but I've heard its a tricky process..
     
  6. Tomer-Barkan

    Tomer-Barkan

    Joined:
    Jul 31, 2012
    Posts:
    150
    I'm not sure what I need, that's why I'm asking here in the Unity Connect forum. I thought it would make sense that unity connect could host a WebGL project for this purpose, but maybe I'm wrong. But then I'd expect it to let me link to my project that is hosted on other popular sites such as Koingregate or Newgrounds.

    Hopefully someone from Unity Connect will answer at some point.
     
  7. sokki

    sokki

    Joined:
    Jan 31, 2015
    Posts:
    166
    It does make sense indeed, since Unity isn't a free software, they could share some sort of cloud (dropbox alike) solution for hosting the games.

    For our accounts and games, we have the free storage server feature where the servers are setup for most types of games, especially webgl (as we license them) games. You can check more info here:
    Free Storage/Server for WebGL Games

    but yea, Unity representative would be able to provide more help and knowledge about this question (good feedback)
     
  8. kg-unity

    kg-unity

    Unity Technologies

    Joined:
    Oct 28, 2015
    Posts:
    33
    Hi Tomer,

    I just tried to open https://jaffa-exile.firebaseapp.com/. It seems like that your setup is not correct. For example, /Release/JaveExileWeb.data should load some kind of (binary) data but what it returns is the html of the homepage. The same for other files like: Release/JaveExileWeb.asm.js. Could you please have a double check?

    For the free hosting of WEBGL provided by Connect, we're trying to make this happen :) We need to think about the cost though. Maybe if you create the project in Unity Collab and also run a build from there, we could do a free hosting.

    Thanks.
     
    Malicjusz likes this.
  9. Tranquil-Abyss

    Tranquil-Abyss

    Joined:
    May 10, 2014
    Posts:
    1

    Attached Files:

  10. Tomer-Barkan

    Tomer-Barkan

    Joined:
    Jul 31, 2012
    Posts:
    150
    Would be great to hear from a Unity rep, seeing as how they're trying to push Unity connect.
     
    Last edited: Feb 20, 2017
  11. kg-unity

    kg-unity

    Unity Technologies

    Joined:
    Oct 28, 2015
    Posts:
    33
    This url http://tranquilabyss.net/scroll%20test/index.html works fine. But you need to use https in order to post it in Unity Connect. i.e. it should be https://tranquilabyss.net/scroll test/index.html. However it doesn't have a valid certificate. You can try to open it in chrome and see the error.

    Again, the hosting of Unity WebGL games is in our roadmap :) If you have any good idea on this, please share with us.
     
  12. Tomer-Barkan

    Tomer-Barkan

    Joined:
    Jul 31, 2012
    Posts:
    150
    Hey kg, sorry, I missed your previous reply altogether!

    I have no idea why the firebase thing didn't work, I followed the webgl instructions, but I don't expect you to solve Google's problems anyway, I thought maybe CDDelta who recommended it in the first place might know.

    Anyway, my question to you would be why does adding the newgrounds doesn't work: https://www.newgrounds.com/portal/view/687693

    This is the UnityConnect project:
    https://connect.unity.com/p/58883b98090915001d3ef3b5

    I tried both http and https, and it loads the newground page without the WebGL application inside.
     
  13. TheRoccoB

    TheRoccoB

    Joined:
    Jun 29, 2017
    Posts:
    54
    @kg-unity I offer a service that specializes in hosting and embedding WebGL games called https://simmer.io.

    When I try to embed a project:
    upload_2019-4-5_15-44-39.png

    It has this dialog:
    upload_2019-4-5_15-44-55.png

    It would be awesome to get whitelisted for this. It already works on Medium, Kickstarter, Patreon, and many more, because SIMMER supports the OEmbed protocol.

    Any interest in whitelisting us?
     

    Attached Files: