hecomi / uDesktopDuplication

Desktop Duplication API implementation for Unity (only for Windows 8/10)
http://tips.hecomi.com/entry/2016/12/04/125641
MIT License
557 stars 97 forks source link

fixed a runtime error when using the IL2CPP scripting backend #24

Closed dj-kusuha closed 5 years ago

dj-kusuha commented 5 years ago

Hi hecomi.

I found a runtime error when using the IL2CPP scripting backend with Unity 2018.2.7f1.

NotSupportedException: To marshal a managed method, please add an attribute named 'MonoPInvokeCallback' to the method definition.

So I fixed it according to the error message. Could you check this pull request?