You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
全炜民 76d40207cb
FinalVersion
10 months ago
..
source~ FinalVersion 10 months ago
README.txt FinalVersion 10 months ago
README.txt.meta FinalVersion 10 months ago
Unity.Collections.LowLevel.ILSupport.dll FinalVersion 10 months ago
Unity.Collections.LowLevel.ILSupport.dll.meta FinalVersion 10 months ago

README.txt

This adds a simple ILSupport extension that adds `ref T AsRef<T>(in T thing)` to
convert a read-only (in) ref to a regular ref, to avoid defensive copies when calling
(non-mutating) methods on it.  This is wrapped in UnsafeUtilityEx, as only Unity.Collections
has InternalsVisibleTo into this library.

Collections.LowLevel.ILSupport can and should be generated by codegen & ilpostprocessors,
however the ilpostproc infrastructure is unstable.  Given that the result of this is
constant, we just check in the final DLL.  The source for everything is in the source~
dir.

To rebuild or to add any functionality:
- delete the prebuilt DLLs in this directory
- and rename the source~ dir to source (without the ~)
- fire up Unity and let it build.  Everything should be successful, you're just now using the runtime-generated DLL.
- make whatever changes you need to
- make sure Unity's builds are up to date
- copy Library/ScriptAssemblies/Unity.Collections.LowLevel.ILSupport.dll into this dir
- rename source back to source~