Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by cgraf1 · Apr 26, 2016 at 04:30 AM · webglembedembedding

How to embed WebGL game on a website?

Hello everyone,

I recently updated my Unity to 5.3 and am looking to embed my first game onto my website using WebGL. I have never done this before and don't really know where to begin. In my research I have seen people say to place it in dropbox, but I don't see how that helps embed it on to my website for people to see and play.

If anyone could me out with this, I would be extremely grateful. Thank you.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Vagonn · Apr 26, 2016 at 05:05 PM

Put your entire build folder to your website (it is default). I'm not web developer but I was able to put folder to our website with filezilla. My teammate helped me to get access ftp of our site. If you know FTP it is very easy.

Your url is your website name if you put build folder directly to main folder in website. For example www.cgraf1.com. It launch index.html file. And you are done

Or if you created custom folder in main folder and build folder in this folder your url be like: www.cgraf1.com/myfolder/

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cgraf1 · Apr 26, 2016 at 05:29 PM 0
Share

Thank you @Vagonn. I will try this now, but I have a few questions.

First, does this all still apply to my website if I am using a C$$anonymous$$S, like Squarespace?

Will I be able to get ftp using a C$$anonymous$$S?

avatar image Vagonn cgraf1 · Apr 26, 2016 at 05:35 PM 0
Share

I think you will be able. Try and reply if you succeeded :)

avatar image cgraf1 Vagonn · Apr 26, 2016 at 06:14 PM 0
Share

O$$anonymous$$, so i tried to link the builder folder (which I am assu$$anonymous$$g is the folder that contains the index.html, the Release folder, and the TemplateData), to the website with the link that Squarespace said to use. This link, however, only took files and not whole folders.

I then tried to put this folder into my Google Drive, make it public, then get a sharable link through there for Squarespace. All that did was link to a big code block ins$$anonymous$$d of the actual game.

So is this where Filezilla comes in? I saw things online about linking Filezilla with SFTP, but not exactly sure what that means.

Update: I now have a link from Google Drive that when clicked it loads the Unity WebGL, but the load bar gets to 2/3 and then stops. Is this a memory issue? Something else I'm doing wrong?

Show more comments
avatar image
2

Answer by PointyPigheadGames · Nov 06, 2016 at 11:34 PM

Check out this tutorial I made here. It shows how to use free hosting from Google. It is not Google Drive! That method does not work anymore. This is the modern way to host your games. I hope you find this helpful.

-Pointy Pighead Games

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BlastOffProductions · Nov 07, 2016 at 02:18 AM 0
Share

Thanks i'll have to try it out! Been looking for a new way to host my games.

avatar image Spiker116 · Jan 31, 2017 at 07:23 PM 2
Share

Hey the link that you left for the tutorial doesn't work anymore. Would you be able to update that link?

avatar image bowserscastle · Feb 11, 2018 at 02:23 AM 0
Share

This links is broken unfortunately.

avatar image
1

Answer by hexagonius · Apr 26, 2016 at 05:33 AM

I just recently built for WebGL. it basically spits out a bunch of stuff with a leading index.html. I think if you put it on an apache or something similar that supports web GL, you can just put it onto the host.

this page mentions something at the bottom:
http://docs.unity3d.com/Manual/webgl-building.html

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cgraf1 · Apr 26, 2016 at 04:54 PM 0
Share

I'm sorry, but the link does not provide enough detail for me to understand. I am very new at this, but as soon as I get it done once, it would mean the world to me. I have a google drive that I can place files publicly, but the WebGL build provides so many files and a the UnityLoader.js that I do not know what to do with all of them. If I could have a bit more details, I would really appreciate it.

At this point, I would even settle for a link to open the game on a separate window, but would still prefer to embed.

avatar image
1

Answer by rakkarage · Jan 16, 2019 at 11:23 PM

https://simmer.io/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Default WebGL fullscreen button not working in Firefox 1 Answer

How to use multiple unity module or unityLibrary into native android application 0 Answers

Embedding scripting language (webgl-compatible) 3 Answers

Is it possible to embed a YouTube video in Unity's WebGL build? 1 Answer

WebGL embed in asp.net mvc 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges