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 BigBlob · Jun 19, 2012 at 03:02 AM · webplayerhtmlblog

Post my game on the Blog

Hi I have my game build for WebPlayer, now I want it to be displayed on my blog. I tried using Gayasoft gadget but it didn't work for me. Then i tried taking the source code from the player and pasting as a HTML, and it also didn't work. Does anyone has another way to this.

  • Felipe

Comment
Add comment · Show 1
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 Mizuho · Jun 19, 2012 at 03:18 AM 0
Share

I think you just upload it like a normal file and it works...

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by dineshrajpurohit · Jun 20, 2012 at 03:24 AM

You will need to save your "WebPlayer.unity3d" in the same folder where your blog page will be and embed the file in to your blog post and use javascript function to call it. Here is the code.

Your div tag where you will see the unity game.

And the Javascript functions

      <script type="text/javascript" src="http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js"></script>
     <script type="text/javascript">
     <!--
     function GetUnity() {
         if (typeof unityObject != "undefined") {
             return unityObject.getObjectById("unityPlayer");
         }
         return null;
     }
     if (typeof unityObject != "undefined") {
         unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 600, 450);
         
     }
     -->
     </script>


I hope this is what you were looking for.

Dins

Comment
Add comment · Show 2 · 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 BigBlob · Jun 20, 2012 at 09:02 PM 0
Share

So how can I have my both files onto same folder location on my blog? Do you post the unity file somewhere on the blog and then you add a gadget that opens it - right?

avatar image dineshrajpurohit · Jun 24, 2012 at 07:30 AM 0
Share

It depends. how much control do you have to your blog?. Can you access the blog files using ftp, ssh or something. If you can access the files physically than this can be done. If you have a blog which you can only manipulate by using login system. Than it will be difficult. You can create a page on your domain (if you have one) and put the link on the blog.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Is there a workaround to display Ad Network video content triggered by Unity? 0 Answers

Remove Unity Web Player Install now Icon 1 Answer

How to execute SendMessage when the Web Player is in an object DOM? 1 Answer

Web Player splash screen BEFORE loading 0 Answers

Unity Web Player telling me to install. Suddenly. NEED HELP FAST! 0 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