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
1
Question by Faskoona · Oct 28, 2010 at 10:10 PM · webplayerwwwstream

How To Use LoadUnityWeb To Load a New Webplayer

Hello,

I am using a webplayer interface to load a game on my server when a button is clicked. Everything seems to be going well (no errors), but the new webplayer game never loads/starts. Am I missing something in the code below? Or is it due to the webplayer I am trying to load (ie: does it need to be a streamed webplayer etc)?

using UnityEngine; using System.Collections;

public class InterfacerB : MonoBehaviour {

void OnGUI()

{ if (GUI.Button(new Rect(Screen.width / 2, Screen.height / 10, 100, 25), "Load Game 1")) {

   StartCoroutine("StartLoad");

   Debug.Log("Clicked to load");

}

}

 IEnumerator StartLoad () {

     WWW stream = 
       new WWW ("http://www.faskoona.com/mature/m_content/content01/WebPlayer/WebPlayer.unity3d");
     while (!stream.isDone) {
     Debug.Log("Loading");

         yield return null;
     }

     stream.LoadUnityWeb();
 }

}

Any help is greatly appreciated!

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

2 Replies

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

Answer by Faskoona · Nov 07, 2010 at 04:46 PM

I have found the answer to my problem. There is nothing incorrect in the code.

I had to read this documentation: http://unity3d.com/support/documentation/Manual/Security%20Sandbox.html All I needed to include was the crossdomain.xml document in my server root directory, and all works well.

I would have figured this out a long time ago, but when I initially looked into the "no crossdomain.xml policy exists" error, someone said to simply ignore it as it was not important.

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
avatar image
0

Answer by JDonavan 1 · Oct 30, 2010 at 05:09 AM

I think what you're looking for is an asset bundle. http://unity3d.com/support/resources/example-projects/assetbundles.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 Faskoona · Oct 30, 2010 at 08:41 AM 0
Share

Hi, I'm actually looking to load an entirely new game. Basically I am making a menu where you choose from a list of games. You make a selection and it will load/stream that entire game. From what I understand Assetbundles do not include scripts as assets so I don't think I can use that method.

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

No one has followed this question yet.

Related Questions

Having Trouble with Javascript GET and URL 1 Answer

Failed downloading http with WWW on Internet Explorer 0 Answers

Bytes array always empty in WWW object (on WebPlayer) 0 Answers

WebPlayer and WWW, stalls forever on get.... 0 Answers

How do I properly send binary data (byte[]) to a MySQL database? 4 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