Category : unity3d

I’m export an unity project to android but when run compile it with ndk, i got many error about can’t find .h file in .c file’s include lines. They are in this folder unityLibrarysrcmainIl2CppOutputProjectIL2CPPexternalbdwgc, Many .c file have #inlcude some modules in folder name ‘include’ but the path only like #include "private/gv_priv.h" (right must be ..

Read more

1-> Project Type DLL(UniversalWindows) 2-> Dll1.h code #pragma once #ifdef Dll1 #define Dll1 __declspec(dllexport) #else #define Dll1 __declspec(dllimport) #endif extern "C" Dll1 bool test(); Dll1.cpp code #include "Dll1.h" bool test() { return true; } 3-> build Config-> Debug : Platform-> ARM 4-> Dll1.dll copy to assets/Plugins/WSA/ARM Dll1 asset settings in unity 5-> if I use ..

Read more

I’m trying to send a native c++ short array to c# side via masrhalling: delegate void OnMoreDataInter( [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] short[] moreData, int moreDataSize); This code works perfectly in Windows and Android. However, the returned array size is always 1 on C# side for iOS. I have applied the approach in the topic: ..

Read more