public long GetExportID(Object asset)
 {
     if (asset == m_asset)
     {
         return(ExportCollection.GetMainExportID(m_asset));
     }
     throw new ArgumentException(nameof(asset));
 }
        public ExportPointer CreateExportPointer(Object asset)
        {
            if (CurrentCollection.IsContains(asset))
            {
                return(CurrentCollection.CreateExportPointer(asset, true));
            }
            foreach (IExportCollection collection in m_collections)
            {
                if (collection.IsContains(asset))
                {
                    return(collection.CreateExportPointer(asset, false));
                }
            }

            if (Config.IsExportDependencies)
            {
                //throw new InvalidOperationException($"Object {@object} wasn't found in any export collection");
            }
            ulong exportID = ExportCollection.GetMainExportID(asset);

            return(new ExportPointer(exportID, EngineGUID.MissingReference, AssetType.Meta));
        }
        public ulong GetExportID(Object asset)
        {
            if (CurrentCollection.IsContains(asset))
            {
                return(CurrentCollection.GetExportID(asset));
            }
            foreach (IExportCollection collection in m_collections)
            {
                if (collection.IsContains(asset))
                {
                    return(collection.GetExportID(asset));
                }
            }

            if (Config.IsExportDependencies)
            {
                throw new InvalidOperationException($"Object {asset} wasn't found in any export collection");
            }
            else
            {
                return(ExportCollection.GetMainExportID(asset));
            }
        }