Skip to content

Instantly share code, notes, and snippets.

@wiverson
Last active January 25, 2022 17:55
Show Gist options
  • Save wiverson/f5f0570ef58e569592dfa9f19969f087 to your computer and use it in GitHub Desktop.
Save wiverson/f5f0570ef58e569592dfa9f19969f087 to your computer and use it in GitHub Desktop.
Desktop Native Unity

File Type Associations

Native File Open Dialog

Capture High Rez Screenshot

Call native code from Unity

Unity Desktop Samples

__Internal is only for linking extern methods with statically-linked native functions in Unity IL2CPP. If the intent is using the system-provide d libsqlite3, LibraryPath should be kept as sqlite3. However, if the Unity project integrates SQLite using static library or source code, then LibraryPath should be kept as __Internal . - source

For anyone trying to use Unity IL2CPP with CsvHelper, you need to add the following link.xml file to your Assets folder (can be in a subfolder).

<linker>
    <assembly fullname="CsvHelper" preserve="all"/>
    <assembly fullname="System.Core">
        <type fullname="System.Linq.Expressions.Interpreter.LightLambda" preserve="all" />
    </assembly>
</linker>

The link.xml file tells IL2CPP to not strip these particular assemblies - source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment