jpcy / xatlas

Mesh parameterization / UV unwrapping library
MIT License
2.02k stars 216 forks source link

unity il2cpp build faild #93

Closed orangeagain closed 3 years ago

orangeagain commented 3 years ago

unity il2cpp support c++ source plugin,so I try import this library to unity. I'm noob on c++. some compile error stuck me few days. can you help me to fix compile error? C++ source code plugins for IL2CPP

reproduce: drag trhree source file to Plugins floder in unityediter, And add c# script to gameobject.

public class runtest : MonoBehaviour
{
    [DllImport("__Internal", CallingConvention = CallingConvention.Cdecl)]
    public static extern System.IntPtr xatlasCreateAtlas();

    private void Start()
    {
        xatlasCreateAtlas();
    }
}

than choose windows platform,and choose il2cpp option in playersetting. press build button,you can see same link error in console. I am not good at solve c++ problem by myself,please help me😳

orangeagain commented 3 years ago

I solve this ploblem. the way is enable embed opeion.