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
0
Question by tomekkie2 · Jul 08, 2011 at 06:55 AM · texturewebplayerloadsendmessagelocal

How to load a local texture file to WebPlayer

From I have learnt so far the only way to load a file from the local computer to the WebPlayer involves sending this file to server, generating an event, getting this event inside WebPlayer, and importing the file from the server to WebPlayer. In this way the data travels to the server and then back to the computer if I am right. There is no way to bypass this, is it?

Basically I want to let the user to see a GameObject mapped with his own file.

It is possible to pass a file to the WebPlayer as an argument of unity.SendMessage function in javascript on the webpage?

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

Answer by DavidDebnar · Jul 08, 2011 at 07:53 AM

I don't think so...best way to get some file into webplayer is using the WWW...I wanted to do the same, but i don't think its possible :|.

  • David

Comment
Add comment · Show 6 · 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 tomekkie2 · Jul 08, 2011 at 09:10 AM 0
Share

I did not expect any other answer; I asked the question just to make sure, but is not easy to accept that the data has to travel twice forth and back.

avatar image DavidDebnar · Jul 08, 2011 at 09:27 AM 0
Share

Yep it's sad...$$anonymous$$y 3D artist wanted me to make a program for him, that would import his 3d file and that he could rotate it. But the only way is to upload it. BUT..I got and idea...You could use something like Dropbox, than place the file to the Public folder, copy the public link, and than just make a GUI TextArea or what is it called, let the user write the link to it and that just download the link using the WWW and apply it to the object.

  • $$anonymous$$

avatar image tomekkie2 · Jul 08, 2011 at 09:47 AM 0
Share

Oh, well you have already done this so you are deeper into details. But myself I don't want to make user to manually write anything into GUI.TextArea, but I want to use the html form.

avatar image tomekkie2 · Jul 13, 2011 at 10:20 PM 0
Share

Finally I have managed that through the WWW and it can be seen here: http://virtualplayground.d2.pl/Unity/scianka2x3/popup.html

avatar image Pilot · Oct 24, 2011 at 01:01 PM 0
Share

Wow, that's impressive. Would it be possible to see how you accomplished this? Is there any more information about it on your website, because I couldn't find it.

Show more comments
avatar image
0

Answer by DaveA · Jul 08, 2011 at 02:15 PM

You might be able to embed the form in your player (using WWWForm) You might also consider building it as stand-alone. They'd have to install it (no biggie) and you can still use WWW to talk to servers.

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 Graham-Dunnett · Oct 24, 2011 at 01:35 PM

Note that the webplayer has no access to the hard drive of the client machine. The excellent example from tomekkie2 has the html page access the file and push it into the webplayer using SendMessage. Great work!

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

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

6 People are following this question.

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

Related Questions

Load the content via XML in webplayer 1 Answer

Loading external variables via SendMessage into Unity WebPlayer 2 Answers

Webplayer crash on LoadImageIntoTexture call 1 Answer

Webplayer Publishing Brightens Textures? 1 Answer

One texture loaded, used in multiple terrains, Possible? 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