Beispiel #1
0
 public static unsafe void CopyNativeArrayDirectlyToTweenBatch(
     NativeArray <TweenTransformBatchState> sourceArray,
     TweenTransformBatchState[] destinationArray)
 {
     fixed(void *arrayPointer = destinationArray)
     {
         UnsafeUtility.MemCpy(
             arrayPointer,
             NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(sourceArray),
             sourceArray.Length * TweenTransformBatchState.SizeOf());
     }
 }
Beispiel #2
0
 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());
     }
 }