public void Dispose()
 {
     DynamicBlobAssetBatch.Free(BlobAssetBatch);
     BlobAssetRemap.Dispose();
     BlobAssetBatch = null;
 }
Example #2
0
 protected override void OnDestroy()
 {
     DynamicBlobAssetBatch.Free(m_BlobAssetBatchPtr);
     m_BlobAssetBatchPtr = null;
 }
 public BlobAssetCache(Allocator allocator)
 {
     BlobAssetBatch = DynamicBlobAssetBatch.Allocate(allocator);
     BlobAssetRemap = new NativeHashMap <BlobAssetPtr, BlobAssetPtr>(1, allocator);
 }
Example #4
0
 protected override void OnCreate()
 {
     m_BlobAssetBatchPtr = DynamicBlobAssetBatch.Allocate(Allocator.Persistent);
 }