Can i upload a webGL game to a weebly site?
I want to add it in this web http://www.ippae.com/
OMG! WHY HAS THERE BEEN NO ANSWER??? why does the web ALWAYS do this???
Thank GOD, for once I actually solved it.
It’s not that hard!!!
THANK GOD, THE SOLUTION IS EASY:
- Click on Weebly theme Top Menu
- Click on the lower left button to go into HTML/CSS
- Under the left menu, ASSETS - Create the folders for TemplateData and Release
- Upload the files appropriately
- Open the html file that Unity created, copy it, and paste in Visual Studio/Notepad++/Textpad/Wordpad (NOT MS WORD)
- Search for every instance of when it is looking for a source and switch it like so:
dataUrl: “Release/WEB_BUILD.data”, [ORIGINAL]
dataUrl: “/files/theme/Release/WEB_BUILD.data”, [NEW TARGET]
- Copy all of your changed code
- Create or go to the page where you want your unity player to auto-launch
- Add an “Embed Code </>” object to the page
- click on it and select Edit CSS/Code
- Paste
- PUBLISH
- << HAVE PATIENCE! I thought it was still not fixed, but my game took 20+ seconds to launch>>
You will know you are making progress when the missing Unity Logo’s and expand screen to full size are now visible, instead of empty HTML prompts
================================
THANK GOD. I actually paid the universe back for all the help I have received to date.
EXAMPLE:
http://www.briansturm.com/pongplay.html
1 Like
Thank you. Good workaround. Appreciate it!!!