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(); } } }