Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

DllNotFoundException: gdiplus.dll

Discussion in 'Editor & General Support' started by eco_bach, Jul 12, 2017.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Hi
    Getting a strange project specific error

    DllNotFoundException: gdiplus.dll
    System.Drawing.GDIPlus..cctor ()

    on the following line
    Code (csharp):
    1.  
    2. var paths = StandaloneFileBrowser.OpenFilePanel(Title, Directory, _filterList, Multiselect);
    This is the class I am using
    https://github.com/gkngkc/UnityStan...leBrowser/Sample/CanvasSampleOpenFileImage.cs

    Not sure why this error has cropped up since the browse button was working before. Am I missing a dll or??
    I'm on a Mac
     
  2. fizzd

    fizzd

    Joined:
    Jul 30, 2013
    Posts:
    21
    Just wanted to say that we're getting the exact same error, on a Mac, and using that same class. Searching the error line brought me here.
     
  3. fizzd

    fizzd

    Joined:
    Jul 30, 2013
    Posts:
    21
    Just adding: the fix was simply to change the build settings to Mac!
     
  4. afantiaaaa

    afantiaaaa

    Joined:
    Feb 27, 2019
    Posts:
    1
    Similar error on Android while using the class "System.Drawing".Is there a solution?
     
  5. PixelFireXY

    PixelFireXY

    Joined:
    Nov 2, 2011
    Posts:
    53
    Same here, after imported the dll file System.Drawing I wasn't able to use it