/// <summary> /// Called from <see cref="UnityEngine.Resources.Load(string)"/>, <see cref="UnityEngine.Resources.Load{T}(string)"/> and <see cref="ResourceRequest.asset"/> /// </summary> /// <param name="path"></param> /// <returns></returns> public static UnityEngine.Object FromResourcesLoad(string path) { UnityEngine.Object levelEditorObject = LevelEditorObjectAdder.GetObjectData(path); if (levelEditorObject != null) { return(levelEditorObject); } if (ModsManager.Instance == null) { return(null); } return(ModsManager.Instance.PassOnMod.OnResourcesLoad(path)); }
public static UnityEngine.Object ResourceRequest_asset_GetPostfix(UnityEngine.Object __result, ref string ___m_Path) { UnityEngine.Object moddedResource = LevelEditorObjectAdder.GetObjectData(___m_Path); if (moddedResource != null) { return(moddedResource); } if (ModsManager.Instance != null) { moddedResource = ModsManager.Instance.PassOnMod.OnResourcesLoad(___m_Path); if (moddedResource != null) { return(moddedResource); } } return(__result); }
public static UnityEngine.Object Resources_Load_Postfix(UnityEngine.Object __result, string path) { UnityEngine.Object moddedResource = LevelEditorObjectAdder.GetObjectData(path); if (moddedResource != null) { return(moddedResource); } if (ModsManager.Instance != null) { moddedResource = ModsManager.Instance.PassOnMod.OnResourcesLoad(path); if (moddedResource != null) { return(moddedResource); } } return(__result); }