public override ExportPointer CreateExportPointer(Object asset, bool isLocal) { if (isLocal) { throw new NotSupportedException(); } MonoScript script = m_scripts[asset]; if (s_unityEngine.IsMatch(script.AssemblyName)) { if (MonoScript.IsReadNamespace(script.File.Version)) { int fileID = Compute(script.Namespace, script.Name); return(new ExportPointer(fileID, UnityEngineGUID, AssetExporter.ToExportType(asset))); } else { ScriptInfo scriptInfo = script.GetScriptInfo(); if (scriptInfo != default) { int fileID = Compute(scriptInfo.Namespace, scriptInfo.Name); return(new ExportPointer(fileID, UnityEngineGUID, AssetExporter.ToExportType(asset))); } } } long exportID = GetExportID(asset); EngineGUID uniqueGUID = script.GUID; return(new ExportPointer(exportID, uniqueGUID, AssetExporter.ToExportType(asset))); }
public override ExportPointer CreateExportPointer(Object asset, bool isLocal) { string exportID = GetExportID(asset); return(isLocal ? new ExportPointer(exportID) : new ExportPointer(exportID, Asset.GUID, AssetExporter.ToExportType(Asset.ClassID))); }
public ExportPointer CreateExportPointer(Object @object, bool isLocal) { if (isLocal) { throw new ArgumentException(nameof(isLocal)); } string exportId = GetExportID(@object); AssetType type = AssetExporter.ToExportType(@object.ClassID); return(new ExportPointer(exportId, UtinyGUID.MissingReference, type)); }
public ExportPointer CreateExportPointer(Object asset, bool isLocal) { if (isLocal) { throw new ArgumentException(nameof(isLocal)); } long exportId = GetExportID(asset); AssetType type = AssetExporter.ToExportType(asset); return(new ExportPointer(exportId, EngineGUID.MissingReference, type)); }
public override ExportPointer CreateExportPointer(Object asset, bool isLocal) { if (isLocal) { throw new NotSupportedException(); } ulong exportID = GetExportID(asset); EngineGUID uniqueGUID = m_scripts[asset].GUID; return(new ExportPointer(exportID, uniqueGUID, AssetExporter.ToExportType(asset))); }