UnsafeUtility.PinGCArrayAndGetDataAddress(System.Array,ulong)

Description

Keeps a strong GC reference to an array and pins it.

The object is guaranteed to not move its memory location in a moving GC. Returns the address of the first element of the array.

Additional resources: UnsafeUtility.ReleaseGCObject.


Did you find this page useful? Please give it a rating: