private Asset(
Guid guid,
string assetDatabaseId = null,
string absoluteAssetPath = null,
// string sourceBasePath = null,
// string fileNameAndExtension = null,
// string pathUnderSourceBase = null,
string importFrom = null,
string exportTo = null,
Type assetType = null,
bool isNew = false,
bool isBundled = false,
string variantName = null
)
{
if(assetType == typeof(object)) {
throw new AssetBundleGraphException("Unknown type asset is created:" + absoluteAssetPath);
}
this.guid = guid;
this.absoluteAssetPath = absoluteAssetPath;
// this.sourceBasePath = sourceBasePath;
// this.fileNameAndExtension = fileNameAndExtension;
// this.pathUnderSourceBase = pathUnderSourceBase;
this.importFrom = importFrom;
this.exportTo = exportTo;
this.assetDatabaseId = assetDatabaseId;
this.assetType = assetType;
this.isNew = isNew;
this.isBundled = isBundled;
this.variantName = variantName;
}