public static unsafe void CopyNativeArrayDirectlyToTweenBatch( NativeArray <TweenTransformBatchState> sourceArray, TweenTransformBatchState[] destinationArray) { fixed(void *arrayPointer = destinationArray) { UnsafeUtility.MemCpy( arrayPointer, NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(sourceArray), sourceArray.Length * TweenTransformBatchState.SizeOf()); } }
public static unsafe void CopyTweenBatchDirectlyToNativeArray( TweenTransformBatchState[] sourceArray, NativeArray <TweenTransformBatchState> destinationArray, int length) { fixed(void *arrayPointer = sourceArray) { UnsafeUtility.MemCpy( NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(destinationArray), arrayPointer, length * TweenTransformBatchState.SizeOf()); } }