Skip to content

Commit 4ccfa74

Browse files
author
David Lassonde
committed
disabling il2cpp
1 parent 9b480b4 commit 4ccfa74

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Packages/com.autodesk.fbx/Scripts/NativeMethods.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,23 @@ private static int InitFbxAllocators()
226226
#if COM_UNITY_FORMATS_FBX_AS_ASSET || UNITY_STANDALONE
227227
const string DllImportName = "UnityFbxSdkNative";
228228
#elif UNITY_EDITOR_OSX
229-
const string DllImportName = "Packages/com.unity.formats.fbxsdk/MacOS/UnityFbxSdkNative.bundle/Contents/MacOS/UnityFbxSdkNative";
229+
const string DllImportName = "Packages/com.autodesk.fbx/MacOS/UnityFbxSdkNative.bundle/Contents/MacOS/UnityFbxSdkNative";
230230
#elif UNITY_EDITOR_LINUX
231-
const string DllImportName = "Packages/com.unity.formats.fbxsdk/Linux/UnityFbxSdkNative.so";
231+
const string DllImportName = "Packages/com.autodesk.fbx/Linux/UnityFbxSdkNative.so";
232232
#elif UNITY_EDITOR_WIN
233-
const string DllImportName = "Packages/com.unity.formats.fbxsdk/Windows/UnityFbxSdkNative.dll";
233+
const string DllImportName = "Packages/com.autodesk.fbx/Windows/UnityFbxSdkNative.dll";
234234
#else
235235
#error "FbxSdk: C# bindings for this platform haven't been implemented yet, sorry."
236236
const string DllImportName = "UnityFbxSdkNative";
237237
#endif
238238

239+
// Because of a non-static delegate (ProgressCallback) that is called from NativeFBX->Managed,
240+
// we are not supported IL2CPP
241+
#if ENABLE_IL2CPP
242+
#error Autodesk.Fbx is not supported on IL2CPP
243+
#endif
244+
245+
239246

240247
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDouble4x4__SWIG_0___")]
241248
public static extern global::System.IntPtr new_FbxDouble4x4__SWIG_0();

0 commit comments

Comments
 (0)