patricksebastien / libpd4unity

libpd for unity 3d
101 stars 20 forks source link

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

Open diemildefreude opened 8 years ago

diemildefreude commented 8 years ago

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

thefuntastic commented 8 years ago

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.

diemildefreude commented 8 years ago

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

thefuntastic commented 8 years ago

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.