Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Tim-A · Jan 02, 2013 at 07:27 PM · webplayeronline

Web player

I built a game and I need to upload it to www.webs.com. I have my own free site and I would like to put my game up there. I built the game as a web player and I don't know how to upload it to the site. Please respond!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by fafase · Jan 02, 2013 at 07:53 PM

When you build your web game you get two files, the data with a .unity3d and a simple html file.

One thing first

 YOU HAVE TO HAVE THE TWO FILES IN THE SAME FOLDER OF YOUR WEBSITE.

There is not much you can do with the .unity3d file.

If you open the html file in an editor, you will see some Javascript (the real one not the unity one) script function. Those are doing it all.

 unityObject.embedUnity("unityPlayer", "Game.unity3d", 800, 600);

This says to find the div unityPlayer id in your html, find the game.unity3d data file stored in the same folder, 800 and 600 are size parameters.

You can also add optional parameters after.

Now in your body you need:

 <div id="unityPlayer" class="player">
     <div class="missing">
     <a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!">
     <img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" /></a>
     </div>
 </div>

This is the div with id unityPlayer.

Comment
Add comment · Show 4 · 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 Tim-A · Jan 02, 2013 at 08:01 PM 0
Share

So what would I place in the box for html?

avatar image fafase · Jan 02, 2013 at 08:59 PM 0
Share

You do not place anything in the div. $$anonymous$$y exemple line above has a div inside a div in case your computer does not have the web player installed so that it shows a download link. This is by default on your html file.

All you need is to have a div with id matching the id name you provide in the function, in my case unityPlayer, somewhere in your html. The javascript function will find it and embed the game inside of it using the web player.

All in all, you pretty much have nothing to do.

avatar image Tim-A · Jan 03, 2013 at 03:54 AM 0
Share

Would I put your

 <div class="missing">
 <a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!">
 <img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" /></a>
 </div>


or another code into the box. It says HT$$anonymous$$L code. How would I get that to show my game?

avatar image Tim-A · Jan 03, 2013 at 04:39 PM 0
Share

Sorry I was using Opera and the browser didn't load. so it's fixed now!! $$anonymous$$y site is up and running.

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

9 People are following this question.

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

Related Questions

unity web hosting 1 Answer

Unity Web Player Offline install for Internet Explorer 1 Answer

Play a unity game without unity web player 2 Answers

Getting it to the web 1 Answer

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 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