If you need the image to scale properly you can use these lines after the lines " rawImage.texture = uwrTexture; " (line 39) inside the else statement. | V int w = uwrTexture.width; int h = uwrTexture.height; rawImage.GetComponent().sizeDelta = new Vector2(w, h);
Hello sir! Thank you very much for the tutorial. I've found www.isNetworkError and www.isHttpError is decrypted in unity 2021.3 . It is replaced the line 26 with if (www.result == UnityWebRequest.Result.ConnectionError || www.result == UnityWebRequest.Result.ProtocolError) and it worked. 😁
Loved the tutorial, works great for me! I was wondering does anyone know if there's a way to save those images that are uploaded? like make a copy of them in a folder in the unity project.
Hi man! Great tutorial! 😁 Im yout wondering if you know how to save the image, so that its stays the same even if you quit the game😄 That would be awesome! 😁✌️
you can't. This only works in Editor precisely because it is using UnityEditor functionality. Think of it as code that is NOT allowed to be deployed with your application since it can only run while IN engine.
Maybe @The Ultimate Developer can correct me if I am wrong, but AFAIK this will simply not build. It can be used while in-engine though, which is good enough in many cases for the production of an app, but not when you need the functionality inside of the app itself.
Hi, you are correct. That will only work in the Editor However, I think I have a solution to make it work on build as well. I only tested it on desktop though. I will share it with you guys soon. Take care.
@The Ultimate Developer this tutorial is great it, it helped me out a lot. Do you know how this works for materials? So that if you select a material from your explorer that it will be assigned as a material? This would be amazing! Stay healthy :)
Find the updated FILE EXPLORER TUTORIAL 2021 HERE (Works on build & editor) - No More Errors! - ua-cam.com/video/Z1qT65GL-6Q/v-deo.html
So does this work on mobile?? :D
Spent a whole day looking for how to do this. Thank you!
This only available in Editor.
I'm making a rhythm game where users can upload songs so this was wonderful, thanks!
osu intensifiies
@@jerry-nguyen.11 lmfao yes, but simpler
If you need the image to scale properly you can use these lines after the lines " rawImage.texture = uwrTexture; " (line 39) inside the else statement.
|
V
int w = uwrTexture.width;
int h = uwrTexture.height;
rawImage.GetComponent().sizeDelta = new Vector2(w, h);
Hello sir! Thank you very much for the tutorial.
I've found www.isNetworkError and www.isHttpError is decrypted in unity 2021.3 .
It is replaced the line 26 with
if (www.result == UnityWebRequest.Result.ConnectionError || www.result == UnityWebRequest.Result.ProtocolError)
and it worked. 😁
THANK YOU SOOO MUCH, i liturally despaired on this for 8 hours STRAIGHT! but its finally over! thaaaanks
Will this work on an android build? I am trying to upload a picture from my phone with an unity app.
I don't think so, its using Editor class. I am looking for the same thing
Did either of y'all have any luck?
does this work only in editor ?
yes
the application doesnt have the right permisions i think
Does this work for mobile??
very good!
Thanks this tutorial is very informations.
P.s.
I'm Russian.
Да всем Русским привет!
Exactly what I was looking for, Thanks a ton for this amazing tutorial.
nice video! still helpful in 2022
Loved the tutorial, works great for me! I was wondering does anyone know if there's a way to save those images that are uploaded? like make a copy of them in a folder in the unity project.
Hi man! Great tutorial! 😁 Im yout wondering if you know how to save the image, so that its stays the same even if you quit the game😄 That would be awesome! 😁✌️
Hi Nik, I have not done something like that before however, I can look into it for you. Have a great day & don't forget to hit that subscribe button 😁
@@theultimatedeveloper4736 It will be awesome if you can figure this out! And I subscribed already! Stay best! 😄
ua-cam.com/video/X8s63Ozhu8k/v-deo.html
I'm also curious about how to go about doing this. :D
@@theultimatedeveloper4736 did you get any results for this ?
this only works for editor, is there a way where i can do this in windows build as well ??
Is this work on smartphones as well?
thank you for the clear info my man
on android?
does it work on webgl?
Can u teach me how to edit desktop wallpaper using unity to change?
That doesn’t work for me with MP4 video. I get a red question mark in the raw image. Any ideas?
an MP4 is not an image
i want to set the file path folder.
How should I edit the script, if it is not possible to compile with "UnityEditor"?
you can't. This only works in Editor precisely because it is using UnityEditor functionality. Think of it as code that is NOT allowed to be deployed with your application since it can only run while IN engine.
Maybe @The Ultimate Developer can correct me if I am wrong, but AFAIK this will simply not build. It can be used while in-engine though, which is good enough in many cases for the production of an app, but not when you need the functionality inside of the app itself.
Hi, you are correct. That will only work in the Editor However, I think I have a solution to make it work on build as well. I only tested it on desktop though. I will share it with you guys soon. Take care.
@@theultimatedeveloper4736 oh nice! that would be great to know about. Thanks!
@@EnriquePage91 Hi please see updated file explorer video
@The Ultimate Developer this tutorial is great it, it helped me out a lot. Do you know how this works for materials? So that if you select a material from your explorer that it will be assigned as a material? This would be amazing! Stay healthy :)
how to get a list music?
А вы вкурсе что это не работает, если делать сборку программы.
Thank you
how to make button open pdf file in unity?
Exactly I am stuck here, I want to choose pdf and need to send to server.
Thx~~!!!
Hello, it's not showing any images in my file explorer. How to fix this, plz?
Oh my, it's "OpenFilePanel", not "OpenFolderPanel".
Deprecated... (www.isNetworkError || www.isHttpError)
is now just... (www.error == null)