A game about forced loneliness, made by TACStudios
1This adds a simple ILSupport extension that adds `ref T AsRef<T>(in T thing)` to
2convert a read-only (in) ref to a regular ref, to avoid defensive copies when calling
3(non-mutating) methods on it. This is wrapped in UnsafeUtilityEx, as only Unity.Collections
4has InternalsVisibleTo into this library.
5
6Collections.LowLevel.ILSupport can and should be generated by codegen & ilpostprocessors,
7however the ilpostproc infrastructure is unstable. Given that the result of this is
8constant, we just check in the final DLL. The source for everything is in the source~
9dir.
10
11To rebuild or to add any functionality:
12- delete the prebuilt DLLs in this directory
13- and rename the source~ dir to source (without the ~)
14- fire up Unity and let it build. Everything should be successful, you're just now using the runtime-generated DLL.
15- make whatever changes you need to
16- make sure Unity's builds are up to date
17- copy Library/ScriptAssemblies/Unity.Collections.LowLevel.ILSupport.dll into this dir
18- rename source back to source~