internal void NotFound(string fullName) { if (fullName != null) { if (reportAssets) { Package.Asset refBy = Current; if (refBy != null) { AssetReport.instance.NotFound(fullName, refBy.fullName); } else { AssetReport.instance.NotFound(fullName); } } if (failedAssets.Add(fullName)) { Util.DebugPrint("Asset not found:", fullName); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.CustomAssetNotFound(ShorterAssetName(fullName)); } } }
internal void AssetFailed(Package.Asset assetRef, Package p, Exception e) { string fullName = assetRef?.fullName; if (fullName == null) { assetRef = FindMainAssetRef(p); fullName = assetRef?.fullName; } if (fullName != null && LevelLoader.instance.AddFailed(fullName)) { if (reportAssets) { AssetReport.instance.AssetFailed(assetRef); } Util.DebugPrint("Asset failed:", fullName); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.CustomAssetFailed(ShortAssetName(fullName)); } if (e != null) { UnityEngine.Debug.LogException(e); } }
internal void NotFound(string name) { if (name != null) { if (reportAssets) { if (loadedAsset != null) { AssetReport.instance.NotFound(name, loadedAsset); } else { AssetReport.instance.NotFound(name); } } if (failedAssets.Add(name)) { Util.DebugPrint("Asset not found:", name); int j = name.IndexOf('.'); if (j >= 0 && j < name.Length - 1) { name = name.Substring(j + 1); } name = AssetName(name); LoadingManager.instance.m_loadingProfilerCustomAsset.BeginLoading(name); Profiling.CustomAssetNotFound(name); LoadingManager.instance.m_loadingProfilerCustomAsset.EndLoading(); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.SomeNotFound(); } } }
internal void NotFound(string fullName) { if (fullName != null) { if (reportAssets) { if (!string.IsNullOrEmpty(Current)) { AssetReport.instance.NotFound(fullName, Current); } else { AssetReport.instance.NotFound(fullName); } } if (failedAssets.Add(fullName)) { Util.DebugPrint("Asset not found:", fullName); string name = ShorterAssetName(fullName); LoadingManager.instance.m_loadingProfilerCustomAsset.BeginLoading(name); Profiling.CustomAssetNotFound(name); LoadingManager.instance.m_loadingProfilerCustomAsset.EndLoading(); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.SomeNotFound(); } } }
internal void NotFound(string fullName) { if (fullName != null && LevelLoader.instance.AddFailed(fullName)) { Util.DebugPrint("Asset missing:", fullName); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.CustomAssetNotFound(ShortAssetName(fullName)); } }
internal void Duplicate(string fullName, List <Package.Asset> assets) { if (reportAssets) { AssetReport.instance.Duplicate(assets); } Util.DebugPrint("Duplicate name", fullName); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.CustomAssetDuplicate(ShortAssetName(fullName)); }
internal void Duplicate(string fullName, Package package) { string path = package.packagePath ?? "Path unknown"; if (reportAssets) { AssetReport.instance.Duplicate(fullName, path); } Util.DebugPrint("Duplicate asset", fullName, "in", path); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.CustomAssetDuplicate(ShorterAssetName(fullName)); }
internal void AssetFailed(string fullName, Exception e) { if (fullName != null && failedAssets.Add(fullName)) { if (reportAssets) { AssetReport.instance.AssetFailed(fullName); } Util.DebugPrint("Asset failed:", fullName); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.CustomAssetFailed(ShorterAssetName(fullName)); } if (e != null) { UnityEngine.Debug.LogException(e); } }
internal void Duplicate(string fullName, Package package) { string path = package.packagePath ?? "Path unknown"; if (reportAssets) { AssetReport.instance.Duplicate(fullName, path); } Util.DebugPrint("Duplicate asset", fullName, "in", path); string name = ShorterAssetName(fullName); LoadingManager.instance.m_loadingProfilerCustomAsset.BeginLoading(name); Profiling.CustomAssetDuplicate(name); LoadingManager.instance.m_loadingProfilerCustomAsset.EndLoading(); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.SomeDuplicate(); }
internal void Failed(Package.Asset data, Exception e) { string name = data?.name; if (name != null && failedAssets.Add(data.fullName)) { Util.DebugPrint("Asset failed:", data.fullName); if (reportAssets) { AssetReport.instance.Failed(data.fullName); } Profiling.CustomAssetFailed(AssetName(name)); DualProfilerSource profiler = LoadingScreen.instance.DualSource; profiler?.SomeFailed(); } if (e != null) { UnityEngine.Debug.LogException(e); } }