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 Dunkhan · Jan 18, 2011 at 12:21 PM · imagewwwload

www not loading from image file

When I use www to load a texture image it works fine if I load a random image from the web, but when I load the image from my hard disk with the file protocol it returns a white texture with a red question mark instead. Can someone explain to me what properties my texture files should and shouldn't have, or an alternative to the texture files being the problem?

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 yoyo · Jan 19, 2011 at 07:23 AM 0
Share

I've loaded files using the file:// protocol, so I know it can work. What file format are you using? If you put the file in your Assets folder does it import correctly?

3 Replies

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

Answer by Dunkhan · Jan 19, 2011 at 10:51 AM

http://answers.unity3d.com/questions/36920/my-textures-arent-working

This was answered on the other question I posted. Thankyou to all who helped. Unity doesn't support bmp files

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 _MGB_ · Jan 18, 2011 at 02:57 PM

Are you using an absolute or relative path to the file? It appears to need an absolute one including the drive letter (e.g. using Application.dataPath).

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 Dunkhan · Jan 18, 2011 at 05:34 PM 0
Share

I am using an absolute path, in addition it gives me a failure error when it cant find the file so it is finding the file

avatar image Dunkhan · Jan 19, 2011 at 12:28 AM 0
Share

I also tried replacing " " in the path with "%20" with no effect

avatar image
0

Answer by KrisCadle · Feb 25, 2012 at 02:57 AM

Also, you do have to add the "file://C:/ - so your var should look like this

 var url = "file://C:/Desktop/yourImage.jpg";
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

1 Person is following this question.

avatar image

Related Questions

Possible to load image from desktop not url 3 Answers

Load external mp3 File without streaming 1 Answer

load csv www 0 Answers

Can't play two audio with same clip by WWW 0 Answers

Downloading image from the server crash the game in Android Device ? 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