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

描述

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

// Functional equivalent to this (But with various optimizations)
for (int i = 0; i != count; i++)
{
    UnsafeUtility.MemCpy(destination, source, elementSize);
    destination += destinationStride;
    source += sourceStride;
}