public long GetExportID(Object asset) { if (m_assetCollections.TryGetValue(asset.AssetInfo, out IExportCollection collection)) { return(collection.GetExportID(asset)); } return(ExportCollection.GetMainExportID(asset)); }
public MetaPtr CreateExportPointer(Object asset) { if (m_assetCollections.TryGetValue(asset.AssetInfo, out IExportCollection collection)) { return(collection.CreateExportPointer(asset, collection == CurrentCollection)); } long exportID = ExportCollection.GetMainExportID(asset); return(new MetaPtr(exportID, GUID.MissingReference, AssetType.Meta)); }
private ExportCollection LoadExports(XmlNode node) { ExportCollection exports = new ExportCollection(); foreach (XmlNode xn in node.ChildNodes) { if ("#comment" == xn.Name) { continue; } Export export = LoadExport(xn); exports.Add(export.Id, export); } return(exports); }
public ExportPointer(ClassIDType classID, AssetType assetType) : this(ExportCollection.GetMainExportID((uint)classID), EngineGUID.MissingReference, assetType) { }
public MetaPtr(ClassIDType classID, AssetType assetType) : this(ExportCollection.GetMainExportID((uint)classID), UnityGUID.MissingReference, assetType) { }