• 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
Question by 199christoff · Jan 22, 2013 at 06:25 PM · imagewwwload

Possible to load image from desktop not url

Hi hope someone can help here, I know how to load an image from a URL but is it possible to load from a local file such as the C: Drive?

I cant find any reference at the moment and don't know if it is a security issue w$$anonymous$$ch is why you are unable to do so.

Any help would be appreciated.

thank you

Comment

People who like this

0 Show 0
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
Best Answer

Answer by AndyMartin458 · Jan 22, 2013 at 06:32 PM

are you trying to make a photo viewer? I t$$anonymous$$nk that it is certainly possible to do t$$anonymous$$s, but typically you just want to drag the files into your project. A URL can also be used to load files. "http://www.myfile.com" would work about the same as "c:/users/me/myfile.jpg" I believe. You can even find files that are in your project folder using C# like t$$anonymous$$s

 string fileLocation = Application.dataPath + @"/Resources/mypic.jpg";
Comment
akkuzuhakan164

People who like this

1 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 199christoff · Jan 22, 2013 at 11:17 PM 0
Share

UPDATE: Will add my script's asap for other's to use, managed to get the image to save inside the applications folder, and load it in real time as a texture.

avatar image

Answer by 199christoff · Jan 22, 2013 at 09:43 PM

Thank you, Il try t$$anonymous$$s now and let you know what happens.

What I am trying to ac$$anonymous$$eve is a system where the user can take a photo of them self for use wit$$anonymous$$n the game. I have the webcam and photo function working, but didn't have any look when it came to loading the file to my texture.

I will try your solution now and see it works, appreciate the help.

Comment
akkuzuhakan164

People who like this

1 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 AndyMartin458 · Jan 22, 2013 at 11:05 PM 0
Share

I'm not at a computer where I can test any of that for you.

avatar image 199christoff · Jan 22, 2013 at 11:16 PM 0
Share

Thanks since then I have been able to fix my problems and get it working, il upload the scripts so others can use them asap!

but thank you for your help, it put me on the right path.

avatar image

Answer by Chintan-Kansagara · Aug 02, 2017 at 11:33 AM

Hi. someone can help here, i am current working in wallpaper app development in unity3d platfrom -- Possible to load image from url and Set image as wallpaper

Comment
akkuzuhakan164

People who like this

1 Show 0 · 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

13 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

Related Questions

www not loading from image file 3 Answers

WWW Image Loading Fails When Directory Contains "+" Character 0 Answers

best way to show iphone purchased assets 0 Answers

Loading a higher resolution image into Unity than what is supported 0 Answers

Free memory after WWW.LoadImageIntoTexture 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