Search Unity

WebGL Weebly Website Implementation

Discussion in 'Web' started by massey_digital, Aug 7, 2015.

  1. massey_digital

    massey_digital

    Joined:
    Apr 28, 2013
    Posts:
    94
    Hello,

    I'm wondering if anyone has attempted to upload a WebGL build onto their weebly website, or would know how to. I know that Weebly has their embed code feature, but I don't know what other files to upload along with the index.html.

    Thank you in advance for your help!
     
  2. DugelStudios

    DugelStudios

    Joined:
    Feb 21, 2015
    Posts:
    92
    I need to know this too... did you ever get it working?
     
  3. Unvincible

    Unvincible

    Joined:
    Sep 19, 2013
    Posts:
    7
    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:
    1) Click on Weebly theme Top Menu
    2) Click on the lower left button to go into HTML/CSS
    3) Under the left menu, ASSETS - Create the folders for TemplateData and Release
    4) Upload the files appropriately
    5) Open the html file that Unity created, copy it, and paste in Visual Studio/Notepad++/Textpad/Wordpad (NOT MS WORD)
    6) 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]
    7) Copy all of your changed code
    8) Create or go to the page where you want your unity player to auto-launch
    9) Add an "Embed Code </>" object to the page
    10) click on it and select Edit CSS/Code
    11) Paste
    12) PUBLISH
    13) << 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
     
  4. Unvincible

    Unvincible

    Joined:
    Sep 19, 2013
    Posts:
    7
    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:
    1) Click on Weebly theme Top Menu
    2) Click on the lower left button to go into HTML/CSS
    3) Under the left menu, ASSETS - Create the folders for TemplateData and Release
    4) Upload the files appropriately
    5) Open the html file that Unity created, copy it, and paste in Visual Studio/Notepad++/Textpad/Wordpad (NOT MS WORD)
    6) 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]
    7) Copy all of your changed code
    8) Create or go to the page where you want your unity player to auto-launch
    9) Add an "Embed Code </>" object to the page
    10) click on it and select Edit CSS/Code
    11) Paste
    12) PUBLISH
    13) << 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