public BlobAssetComputationContext(BlobAssetStore blobAssetStore, int initialCapacity, Allocator allocator)
 {
     m_BlobAssetStore     = blobAssetStore ?? throw new ArgumentNullException(nameof(blobAssetStore), "A valid BlobAssetStore must be passed to construct a BlobAssetComputationContext");
     m_ToCompute          = new NativeHashMap <Hash128, TS>(initialCapacity, allocator);
     m_Computed           = new NativeHashMap <Hash128, BlobAssetReference <TB> >(initialCapacity, allocator);
     m_BlobPerUnityObject = new NativeMultiHashMap <int, Hash128>(initialCapacity, allocator);
 }
 public BlobAssetComputationContext(BlobAssetStore blobAssetStore, int initialCapacity, Allocator allocator)
 {
     m_BlobAssetStore    = blobAssetStore;
     m_ToCompute         = new NativeHashMap <Hash128, TS>(initialCapacity, allocator);
     m_Computed          = new NativeHashMap <Hash128, BlobAssetReference <TB> >(initialCapacity, allocator);
     m_BlobPerGameObject = new NativeMultiHashMap <int, Hash128>(initialCapacity, allocator);
 }
        // ** CONFIGURATION **

        public GameObjectConversionSettings(World destinationWorld, ConversionFlags conversionFlags, BlobAssetStore blobAssetStore = null)
        {
            DestinationWorld = destinationWorld;
            ConversionFlags  = conversionFlags;
            if (blobAssetStore != null)
            {
                BlobAssetStore = blobAssetStore;
            }
        }
 protected override void OnDestroy()
 {
     base.OnDestroy();
     if (BlobAssetStore != null)
     {
         BlobAssetStore.Dispose();
         BlobAssetStore = null;
     }
 }
 public static GameObjectConversionSettings FromGUID(UnityEditor.GUID guid, BlobAssetStore blobAssetStore) => new GameObjectConversionSettings
 {
     SceneGUID = guid, BlobAssetStore = blobAssetStore
 };
 public static GameObjectConversionSettings FromHash(Hash128 hash, BlobAssetStore blobAssetStore) => new GameObjectConversionSettings
 {
     SceneGUID = hash, BlobAssetStore = blobAssetStore
 };
 public static GameObjectConversionSettings FromWorld(World destinationWorld, BlobAssetStore blobAssetStore) => new GameObjectConversionSettings
 {
     DestinationWorld = destinationWorld, BlobAssetStore = blobAssetStore
 };
 protected override void OnCreate()
 {
     base.OnCreate();
     BlobAssetStore = new BlobAssetStore();
 }