Пример #1
0
 public static unsafe void CopyNativeArrayDirectlyToTweenLifetime(
     NativeArray <TweenLifetime> sourceArray,
     TweenLifetime[] destinationArray)
 {
     fixed(void *arrayPointer = destinationArray)
     {
         UnsafeUtility.MemCpy(
             arrayPointer,
             NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(sourceArray),
             sourceArray.Length * TweenLifetime.SizeOf());
     }
 }
Пример #2
0
 public static unsafe void CopyTweenLifetimeDirectlyToNativeArray(
     TweenLifetime[] sourceArray,
     NativeArray <TweenLifetime> destinationArray,
     int length)
 {
     fixed(void *arrayPointer = sourceArray)
     {
         UnsafeUtility.MemCpy(
             NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(destinationArray),
             arrayPointer,
             length * TweenLifetime.SizeOf());
     }
 }