Version: 2021.2
public static void MemCpyStride (void* destination, int destinationStride, void* source, int sourceStride, int elementSize, int count);

描述

UnsafeUtility.MemCpy 类似,但可以通过 desinationStride 和 sourceStride 跳过字节。

// 功能与此相同(但有不同的优化)
for (int i = 0; i != count; i++)
{
    UnsafeUtility.MemCpy(destination, source, elementSize);
    destination += destinationStride;
    destination += sourceStride;
}