Get the icon of an exe or a file.

Hello,
Is there any possible way to get an icon from a file & load it as a texture in unity?
I would like to know, any help would be greatly appreciated.

Thanks

  • Jabez

1 Answer

1

Haven’t tried, but I imagine it’s possible using icon.extractassociatedicon - you’ll need to import System.Drawing first.

i tried looking at that but unity can't import system.drawing D:. Thanks anyways.

It used to be able to... You need to copy System.Drawing.dll to your project directory.