コード例 #1
0
 public static void *pnew <T>(ref void *ptr, ref T source, Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : struct
 {
     return(MemUtils.CreateFromStruct(ref ptr, ref source, allocator));
 }
コード例 #2
0
 public static void *pnew <T>(Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : struct
 {
     return(MemUtils.CreateFromStruct <T>(allocator));
 }