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
1
Question by Denise · Jan 27, 2010 at 02:55 PM · webplayerstandalone

www in web player and standalone

Are there differences in the way the www class works in the web player and in the standalone player? The same bit of code works in the editor/standalone player for downloading remote files and making web service calls; in the web player, web service calls don't work (files do).

A very simple example, invoked via StartCoroutine():

private IEnumerator GetFile(string FileName){
    WWW www = new WWW(FileName);
    yield return www;
    text = www.data;
}

In general, are the differences between the web player and the stand-alone player documented anywhere?

Edit:

By "web service" I mean, basically: a remote function call. For instance, I may request a URL like "www.mydomain.com/functionName?param1=blah&param2=blah", the server does some work, and returns xml.

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

3 Replies

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

Answer by Denise · Jan 27, 2010 at 03:40 PM

Ok, turns out that you must prefix with "http://" in the web, in standalone it doesn't matter.

(hesitate to admit being that stupid, but there it is.)

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
1

Answer by jonas-echterhoff · Jan 27, 2010 at 03:18 PM

In general, the web plugin uses a different implementation of WWW then editor/standalone: the web plugin passes all www requests through the browser, whereas the standalone will use the curl library for it's WWW implementation.

The implementations should perform the same, though. I don't quite understand what you want to do. What are "web service calls"? What is FileName in that example given?

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
-1

Answer by pavees · Feb 03, 2010 at 10:56 AM

Can u pls give me some details on how to call a Web services. Me being new to Unity Web application, i dont know even how to call a URL and a parameter with it. So could anyone give a proper way to call Web services.

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 Denise · Feb 09, 2010 at 02:38 PM 1
Share

check out the WWW class: http://unity3d.com/support/documentation/ScriptReference/WWW.html

avatar image BerggreenDK · Dec 05, 2010 at 03:32 AM 0
Share

not an answer in this thread, please post it as a new question.

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

Performance Differences in Standalone player versus Web Browser? 2 Answers

Play 2 Stand Alone Players At Same Time 1 Answer

Can compile and run in Standalone, but can't run in Web Player 0 Answers

unity3d read data from PostgreSQL 0 Answers

Is it possible to identify if a user is using webplayer or standalone? 1 Answer


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