libpd4unity icon indicating copy to clipboard operation
libpd4unity copied to clipboard

error: "No overload for method 'GetEnvironmentVariable' takes '2' arguments"

Open diemildefreude opened this issue 9 years ago • 3 comments

A programmer named Slayther is trying to help me get libpd4unity working in the 32-bit Unity 5 editor (64-bit libpd apparently doesn't work in Windows) and we've run into this error. Any ideas?

http://i64.tinypic.com/ws93k2.png

Slayther: Which is strange, because when I checked the code, it indeed can take 2 arguments

http://i67.tinypic.com/nnlf15.png

Slayther: The second error is also odd

http://i64.tinypic.com/dbtd86.png

Thanks in advance, Elliot

diemildefreude avatar Mar 09 '16 08:03 diemildefreude

These methods are specific to the windows build platform. That means if windows isn't selected as your build platform unity won't be able to find these methods.

Please check in your build settings that the platform is set to PC with Platform > Windows and Architecture > x86.

thefuntastic avatar Mar 09 '16 08:03 thefuntastic

Thanks for the reply. Does this mean that Unity projects made using libpd4unity can't be built to be playable on Mac?

diemildefreude avatar Mar 09 '16 15:03 diemildefreude

No, libpd4unity still works on OSX. This code was just a workaround that meant you didn't have to copy the dll to the unity editor folder on windows.

thefuntastic avatar Mar 09 '16 15:03 thefuntastic