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 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 which is why you are unable to do so.

Any help would be appreciated.

thank you

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

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

are you trying to make a photo viewer? I think that it is certainly possible to do this, 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 this

 string fileLocation = Application.dataPath + @"/Resources/mypic.jpg";
Comment
Add comment · 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
0

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

Thank you, Il try this now and let you know what happens.

What I am trying to achieve is a system where the user can take a photo of them self for use within 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
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 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
0

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

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

iOS - WWW Doesn't work on Local Load 1 Answer

How do you download image to UI.Image? 4 Answers

Webplayer crash on LoadImageIntoTexture call 1 Answer

Can you load an AudioClip from the file system w/o using WWW? 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