类似于 UnsafeUtility.MemCpy,但可以通过目的地步幅和源步幅跳过字节。
// Functional equivalent to this (But with various optimizations) byte* destinationBytes = (byte*)destination; byte* sourceBytes = (byte*)source; for (int i = 0; i != count; i++) { UnsafeUtility.MemCpy(destinationBytes, sourceBytes, elementSize); destinationBytes += destinationStride; sourceBytes += sourceStride; }