Search Unity

.Net plugin in Unity3d for mobile and web applications.

Discussion in 'Scripting' started by Umresh, Dec 30, 2019.

  1. Umresh

    Umresh

    Joined:
    Oct 14, 2013
    Posts:
    56
    Hi,
    I have a plugin which uses System.Drawing.Text.PrivateFontCollection it works fine in editor. But when I build it for other platforms it doesn't work as expected. I guess the issue is with mono's system.drawing.dll and .NET's system.drawing.dll. How do I solve the issue? Tried copying the .net's dll in unity but library is not loaded.

    Error : NotSupportedException: System.Drawing.Text.PrivateFontCollection::.ctor

    Edit : I'm Loading Fonts using FontCollection in plugin
     
    Last edited: Dec 30, 2019