Esempio n. 1
0
 public static unsafe void CopyNativeArrayDirectlyToTweenState(
     NativeArray <TweenTransformState> sourceArray,
     TweenTransformState[] destinationArray)
 {
     fixed(void *arrayPointer = destinationArray)
     {
         UnsafeUtility.MemCpy(
             arrayPointer,
             NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(sourceArray),
             sourceArray.Length * TweenTransformState.SizeOf());
     }
 }
Esempio n. 2
0
 public static unsafe void CopyTweenStateDirectlyToNativeArray(
     TweenTransformState[] sourceArray,
     NativeArray <TweenTransformState> destinationArray,
     int length)
 {
     fixed(void *arrayPointer = sourceArray)
     {
         UnsafeUtility.MemCpy(
             NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(destinationArray),
             arrayPointer,
             length * TweenTransformState.SizeOf());
     }
 }