Beispiel #1
0
 public void Clear()
 {
     #if ENABLE_UNITY_COLLECTIONS_CHECKS
     AtomicSafetyHandle.CheckWriteAndBumpSecondaryVersion(this.safetyHandle);
     #endif
     //this.lookup.Clear();
     //this.nodes.Clear();
     NativeArrayUtils.Clear(this.lookup);
     NativeArrayUtils.Clear(this.nodes);
     NativeArrayUtils.Clear(this.elements);
     //this.elements.Clear();
     //UnsafeUtility.MemClear(this.lookup->Ptr, this.lookup->Capacity * UnsafeUtility.SizeOf<int>());
     //UnsafeUtility.MemClear(this.nodes->Ptr, this.nodes->Capacity * UnsafeUtility.SizeOf<QuadNode>());
     //UnsafeUtility.MemClear(this.elements->Ptr, this.elements->Capacity * UnsafeUtility.SizeOf<QuadElement<T>>());
     this.elementsCount = 0;
 }
 public void Clear(int index, int length)
 {
     NativeArrayUtils.Clear(this.arr, index, length);
 }
 public void Clear()
 {
     NativeArrayUtils.Clear(this.arr);
 }