private static bool Prefix(ref string name, ref UnityEngine.Object __result) { //Logger.LogBlue(name); if (AlternateNameManager.ContainsKey(name)) { name = AlternateNameManager.GetAlternateName(name); } if (!AssetManager.IsKnownAsset(name)) { return(true); } __result = AssetManager.GetAsset(name); if (__result is null) { Logger.LogWarning("AssetBundle.LoadAsset failed to load the external asset '{0}'", name); } return(false); }
internal static bool Prefix(ref string path, ref UnityEngine.Object __result) { //Logger.LogBlue(path); if (AlternateNameManager.ContainsKey(path)) { path = AlternateNameManager.GetAlternateName(path); } if (!AssetManager.IsKnownAsset(path)) { return(true); } __result = AssetManager.GetAsset(path); if (__result is null) { Logger.LogWarning("Resources.Load failed to load the external asset"); } return(false); }