Accessing The File Explorer 2021 - (Works in Editor & Build)
Вставка
- Опубліковано 15 вер 2024
- How to access the file explorer in Unity 2D. This works in the editor as well as on build.'
▶Link To GitHub Repo - github.com/The...
▶ How to get DISPLAY TEXT FROM TEXT MESH PRO Tutorial -
www.youtube.co....
▶ How To Change Color Of A Image Background -
www.youtube.co....
▶ How To Use A Check Box / Toggles & Display Error Messages -
www.youtube.co....
▶ Link To Srejon Khan - / @electronicbrain
Hey guys, I hope everyone enjoyed this video & it helped you in some way. You can download the files to get started here - github.com/The-Ultimate-Devel...
Can you make one for android
This is not working in android Please help me sir!!
I need to do the same for android
Please sir !!
this link no longer works
The package includes broken references
@@ziphomfeka9208
you did?
is there a way to remove the image compression, when loading it in?
is it possible to upload multiple images to multiple sprites at the same time?
Great. I'm developing for android, how can i make this work on mobile builds
did you find the answer for your question? i'm also building for android
Same dir you guys
X3
I'm also working on this, would be nice to have a help on the mater
I'd be the sixth person who would need this for android
The type or namespace name 'AnotherFileBrowser' could not be found (are you missing a using directive or an assembly reference?)
With the package shared, any idea?
Did you solve it? I'm having the same issue.
Because your pc buildsetting on android change to window
yes its worked but i have a problen. I want this project for android but its give me the error . I am trying to convert this project on android but nothing happen can you do this.
Can I also open mp4 video files with this method??
Assets\FileBrowserUpdate.cs(2,7): error CS0246: The type or namespace name 'AnotherFileBrowser' could not be found (are you missing a using directive or an assembly reference?)
immediately got this exception the moment i installed the package. I see the using ref at the top, but its underlined red, meaning unity doesn't know what it is. using v 2021.3.15
You are Amazing man , this tutorial is awesome 😄😄
Amazing tutorial as always! Quick question, how would you tranfer these new raw images to another scene? Like if we want it to be a player profile image etc?
Thank you!
Save it in some static variable that persists through scenes with don't destroy on load
Hi! Thank you for the tutorial. I am on mac, and it keeps giving me this error: Assets/FileBrowserUpdate.cs(2,7): error CS0246: The type or namespace name 'AnotherFileBrowser' could not be found (are you missing a using directive or an assembly reference?) Could you please let me know how to fix this? Thank you!
Велика тобі дяка. Ти мені дуже допоміг
you are a LIFE SAVER
Thank you SO MUCH YOU HAVE NO IDEA!
is there any way to select multiple images in the browser, and add all of these images to a list?
What if i want to locate a directory/path in stead of a file?
Use VistaFolderBrowserDialog in FileBrowser instead of VistaOpenFileDialog
How can I save the path in a playerPrefs so when I open the game the image still in there?
Thank you men, its working!
help Assets\FileBrowserUpdate.cs(8,7): error CS0246: The type or namespace name 'AnotherFileBrowser' could not be found (are you missing a using directive or an assembly reference?)
@@StickyLabDev import the files in the link
Hey I realize it's been two years, but I had a quick question:
I can filter the file types down to one type (ie. like just a .jpg). However, the moment I put in a second file type (*.jpg, *.png), it doesn't load any files at all as if it can't correctly read that string. Do you have any idea why that might be?
In the line:
bp.filter = "Image files (*.jpg, *.jpeg, *.jpe, *.jfif, *.png) | *.jpg; *.jpeg; *.jpe; *.jfif; *.png";
remove (*.jpg, *.jpeg, *.jpe, *.jfif, *.png)
so the new line will be:
bp.filter = "Image files | *.jpg; *.jpeg; *.jpe; *.jfif; *.png";
use the semicolon not comma
Hi! There was error at 9:24, but it disappeared after a cut. What you did there, I have the same error.
i see
@@Marci599 What happed there? I seem to have error there.
He wrote IEnumerable there first, but then he replaced it with IEnumerator
does this also work on mobile?
No its doesn't work on android.
Great stuff!! One question, is It the same coding and process for building a phone app?? Thnks
Did you check it out?
What can I do if I cant import the anotherfilebrowser?
If I make a game on phone?
Will is work for uwp platform??
As i am getting a build error while taking a build
just discovered your channel, really awesome
could you explain how to make the same but for video player ?
I used your tutorial and everything was fine and then I came back to my project later and it had converted to your project in this video with the purple background. I lost a lot of work. Do you know why this happened? All I did was install the package and make the script like you did.
This contains system.windows.form, will this compile to android?
Dude please post video for android File Explorer 🙏🏻
@@PriyankaSingh-py5wn No
It's throwing me error though I have already defined namespace in the script. "The Type or namespace 'AnotherFileBrowser' could not be found (Are you missing a using Directive or an assembly reference)".
you have to download the pluggin in the github rep
@@avirupchakraborty8395 Which plugin
I want to show videos from file explorer so will it work? Also I want to make this work for android. Please help someone.
What do I do if I want to display the image chosen in a different scene done the button?
you can create a static texture variable and store the image in that variable and after the other scene is loaded you can change the texture of the rawimage
can you make a video on how to make it all myself??
how do I change the code to get a .txt or .csv file from the files
I also want the code to get a .csv file, did you manage to get the code working for .csv files?
@@diegodiego972 I know this is quite old but answering in the case you haven't found the answer yet or someone else is looking into it too. My approach would be to first create a function that can do whatever you need to with string path of the file. Then changing the code shown in the video into following should allow you to call that function with the string path of the file you choose. Just substitute the "AssetBundleFromLocal(path)" with whatever function call you happen to need.
public void OpenFileBrowser()
{
var bp = new BrowserProperties();
new FileBrowser().OpenFileBrowser(bp, path=> {
AssetBundleFromLocal(path);
});
}
It doesn´t works for me on build, even if it is .NET 4x
how do I copy a text file? Instead of an image
ВАНЁ НОРМАЛЁК))
да, это ЙА
Does it work with android?
Hi Samuel, I will be posting a video soon on how to make it work on Android. Stay tuned and don't forget to hit that subscribe button.
@@theultimatedeveloper4736 i wait too
Great tutorial thanks! Is there a way to put image on 3d object with this method?
just set texture on material
@@-._63 I tried with no success. This is my first project in Unity and I'm lost :)
This is raw look of my project. Idea is to set import design button to project texture on a mug.
jupi.kreativni.hr/Jupi/WebGL/
@@JupiShinn You can send your code?
@@-._63 How? :)
@@JupiShinnoh...
You were very helpful! Thank you! (Translated by DeepL)
how do i save the image permanently in-game?
How can i use this for Android...?
Hey, thank you for the tutorial! But I'm having a problem with the browser: no images appears to me... :(
Hello did you manage to figure this out? im having the same problem :c
What if I wants to upload audio instead of image?
hast du es rausgefunden?
Does this code also work on android / ios devices???
no, i tryed...
Hey! I can't seem to build the game... What do i have to do?
From build settings go to player settings and there find Configuration and under that "Api Compatibility Level". Change that from .NET standard 2.0 to .NET 4.x and see if that helps.
At least in my case it got rid of the error that came from the file browser. Now I still have a bunch of unrelated ones that still stop me from actually building the game... Anyways should be worth a try.
@@Crimtaku Been a while, but i remember doing this yeah lol
Okay you showed how to open a file, but how do you do to ask the path to save a file ?
did you manage to find a way?
I'm also trying to find out how to do that, as I would like to open a folder as the working directory.
hey bro i don't know if u are still teaching but u know how to open fileexplorer or photos with a photo
it doesn't show any files in the browser, it only shows folders.
edit: nevermind i just used the default script
is it also working for android and ios ?
I would like the plugin a little more if it could just return the string path...
The plugin can do that no problem and even if the tutorial didn't show it it is quite easy to do. For me I used this to load assetbundles and that required me to have the string path. The code for the OpenFileBrowser function I used is down below and in my case I just call the function for opening the assetbundle passing the string path there. Hope this helped^^
public void OpenFileBrowser()
{
var bp = new BrowserProperties();
new FileBrowser().OpenFileBrowser(bp, path=> {
AssetBundleFromLocal(path);
});
}
@@Crimtaku Here's the thing. I needed this function to return the path, not process it. But you cannot return it directly. I made it work somehow either with this plugin or another - I don't remember - but it would be nice if it could just return the path when it was ready.
@@tirkdiamond Fair enough, to be honest I am still just learning all of this myself and not that good with code to know how to make it return from the top of my head. Luckily for me both returning and further processing the path were valid options. If nothing else I guess it could be just put it into variable instead of returning it and access it from where you need to even if that would be absolutely horrible way to do things.
Anyways good to hear that you got it working somehow.
@@Crimtaku I needed multiple calls so I would have to use a dictionary or some other structure. Saving it into a variable and checking when it is not null, it was not an option for me, unfortunately. :(
Hey Can you make it work for Android Build?
This is only for Windows, right?
Great. It works perfect!!!
You deserve many more SUBS!!! That's exactly i wanted and works fine.
Thank you very much!!!
Can you send me the wrapper script ?. His git hub doesn’t work anymore
Hey can how can we create a file browser for showing Videos like this guy created for images? Please help me
Hi, nice tutorial video thanks! I checked it works fine in unity editor but when i try to build on windows platform, there is windows dll error and i can't build it. Could you check this problem how to fix it??
I had the same problem...
SOLUTION: the .dll is System.Windows.Form?
This .dll need .NET 3.5 So i change to .NET 4.x in PlayerSettings (in API Compatibility Level*)... Before the proyect use .NET Standard 2.0
In my case this way fixed the problem, and the build was succesfull.
Para algún Hispanohablante:
Si el .dll que les da el problema es System.Windows.Forms... Si hacen click en el archivo, verán que donde dice Assembly Info Targets .NET 3.5, y debe haber algún problema de compatibilidad con el nivel de .NET del proyecto
Entonces en mi caso, que tuve el mismo problema... En PlayerSettings, en Others hay una parte que dice Api Compatibility Level*, yo la tenía en .NET Standard 2.0 y LA SOLUCIÓN FUE cambiar a .NET 4.x
(Usando la versión LTS 2019.4)
@@tomasvercetti_vc This worked. Thanks a lot
@@tomasvercetti_vc imaginate ser tan copado que encima lo pones en dos idiomas nana un rey
@@tomasvercetti_vc THANK YOU SO MUCH I WAS SO WORRIED OMG THANK YOU 😀😀
Can I use this source code for commercial purpose?
It has an MIT license, so I believe it would be allowed.
thank you so much! :D
on android?
Thank you so much
thanks
Nice package! Got lose my scene
Is this work on Mobile?
Did it work ?
i love mighty indians
Ere genial
hey....
man i used the github packaged on ur description
and. that delete all my progress and make my project look like your
how do i undo this
bc if i cant undo this iam gonna lose i project that i spend 1 fucking year
did u make no backups?
I believe it just changed the active scene. Go back to the scene your project is built on.
I got same problem :/
same, that dude in the video didnt even bothered to rename his shitty example scene bruh
You guys need to A) look into version control. (I recommend Git Kraken) and B) Be more careful when importing unity packages.
nice i lost my game scene because of this and basicly lost everything:/
Veri sääd
does it work for linux ?