Test/fix ability to export Cubiquity projects.

Issue #2 resolved
David Williams created an issue

No description provided.

Comments (3)

  1. David Williams reporter

    This is mostly working, except that the Cubiquity DLL needs to be manually copied next to the output executable. Actually this is also done automatically on startup (copied from within the streaming assets folder) but this happens after Unity has already failed to load it. I haven't found a way to make the load happen sooner.

    A different approqch may be required, such as manually loading the libray rather than using the [DllImport] directives. The following links seem useful:

    http://msdn.microsoft.com/en-us/library/windows/desktop/ms686203.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx http://answers.unity3d.com/questions/293867/easier-way-to-handle-unloading-dlls.html http://stackoverflow.com/questions/15923595/how-to-use-a-c-dll-in-unity3d http://stackoverflow.com/questions/8836093/how-can-i-specify-a-dllimport-path-at-runtime

  2. David Williams reporter

    Not sure exactly what changed but we are now able to copy the .dll before Unity attempts to load it. Exporting to standalone builds seems to work as desired.

  3. Log in to comment