Quantcast
Channel: Questions in topic: "dllimport"
Viewing all articles
Browse latest Browse all 160

csc.rsp works in editor but throws an error when building

$
0
0
Hey, for a current project I have to scale the byte/color array of an image, therefore I found the easiest way to do that is using System.Drawing (if somebody has a better solution I am open for it :D). System.Drawing is unfortunately not included in Unity by standard, therefore I set up a csc.rsp with the following line '-r:System.Drawing.dll'. That does work like a charm in the editor. Unfortunately when I am trying to build I still get: "error CS0234: The type or namespace name 'Image' does not exist in the namespace 'System.Drawing' (are you missing an assembly reference?)" - errors. Is there anything additional I need to set up to get this working? I am using Unity 2019.3.2 building for x64 and using Mono as scripting backend.

Viewing all articles
Browse latest Browse all 160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>