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 /
This question was closed Jul 02, 2017 at 09:32 AM by Bunny83 for the following reason:

Problem is not reproducible or outdated

avatar image
0
Question by dkfister · Apr 22, 2014 at 08:49 PM · c#webplayerwwwienumerator

Yield return request never returns

Currently I'm having a problem with my courotine which yield return actually never goes anywhere.. It just doesn't want to return in the Webplayer build. In the Editor it works perfectly fine, no problems yielding at all. This is my IEnumerator that i'm starting.

 public IEnumerator CreateChannel(string ChannelName) {
     string urlRequest = "http://hiddenForSecurityPurposes.com/game/AddChannel.aspx?ChannelName=" + ChannelName;
     WWW request = new WWW(urlRequest);
 
     yield return request;
     //It never reaches here.. It runs this IEnumerator, but the yield return never returns itself.
     
     print("It got yielded");
 }

Again, quick note. This does work fully out in the Editor, but not in Webplayer, which is what I'm exporting my game to.

Comment
Comments Locked · Show 10
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 xortrox · Apr 22, 2014 at 08:55 PM 0
Share

If your webplayer is running on a webserver/host at the moment you might want to read up on the security sandbox of unity webplayer.

avatar image dkfister · Apr 22, 2014 at 09:45 PM 0
Share

I did, I have the crossdomain.xml file in the root of my webserver which is also ASCII of type. So no problems there

avatar image xortrox · Apr 22, 2014 at 10:00 PM 0
Share

Did you make sure the URL is correct? This may also need to be a WWWForm

avatar image dkfister · Apr 22, 2014 at 10:06 PM 0
Share

URL is definitely correct. I'm positive it shouldn't be a WWWForm since that wouldn't make sense for my purpose. It works in Editor, therefore it should also indicate something in the Webplayer. After more research I found this thread that also had the problem a few years ago, but says it was fixed in Unity 3.0.. Clearly it hasn't. http://answers.unity3d.com/questions/154299/yield-return-request-never-returns.html

avatar image xortrox · Apr 22, 2014 at 10:21 PM 0
Share

Hmmm, then I'm not sure what I could do to help you, did you try restarting unity? Some problems seem to get fixed upon restarting. Sorry, forgot you were running the webplayer, never$$anonymous$$d.

Show more comments

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

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

Related Questions

WWW Request runs in Editor but not in Webplayer 1 Answer

How to optimize the build game for unity webplayer? 1 Answer

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Get session of web application by web player 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