73place
0 votes Vote

Could not find texture Mapmagic/Icons/...

MapMagic version: 2.0.5
Unity: 2020.2.0a19.2490



I had a scene open with mapmagic and closed the editor. When I reopened the editor and project, I am now getting a ton of errors similar to the following and my map magic script does not have any functionality shown.

Exception: Could not find texture MapMagic/Icons/AssetBig
Den.Tools.GUI.TexturesCache.LoadTextureAtPath (System.String textureName, System.Boolean forceLight, System.Boolean forcePro) (at Assets/MapMagic/Tools/GUI/Editor/TexturesCache.cs:127)
MapMagic.Nodes.GUI.GraphInspector.DrawListIcon (UnityEngine.Rect iconRect, System.String guid, System.Boolean isListMode) (at Assets/MapMagic/Nodes/Editor/GraphInspector.cs:304)
UnityEditor.ObjectListArea+LocalGroup.DrawIconAndLabel (UnityEngine.Rect rect, UnityEditor.FilteredHierarchy+FilterResult filterItem, System.String label, UnityEngine.Texture2D icon, System.Boolean selected, System.Boolean focus) (at :0)
UnityEditor.ObjectListArea+LocalGroup.DrawItem (UnityEngine.Rect position, UnityEditor.FilteredHierarchy+FilterResult filterItem, UnityEditor.BuiltinResource builtinResource, System.Boolean isFolderBrowsing) (at :0)
UnityEditor.ObjectListArea+LocalGroup.DrawInternal (System.Int32 beginIndex, System.Int32 endIndex, System.Single yOffset) (at :0)
UnityEditor.ObjectListArea+Group.Draw (System.Single yOffset, UnityEngine.Vector2 scrollPos, System.Int32& rowsInUse) (at :0)
UnityEditor.ObjectListArea.HandleListArea () (at :0)
UnityEditor.ObjectListArea.OnGUI (UnityEngine.Rect position, System.Int32 keyboardControlID) (at :0)
UnityEditor.ProjectBrowser.OnGUI () (at :0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at :0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at :0)
UnityEditor.DockArea.OldOnGUI () (at :0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0)
UnityEngine.UI

Kevin Shanahan , 13.08.2020, 02:45
Idea status: rejected

Comments

Wraith, 13.08.2020, 14:02
Please note that MM is not guaranteed to work with Unity alpha versions. It might be related with the way alpha loads resources. Anyways, is MM installed as a package?
Kevin Shanahan, 13.08.2020, 18:42
Yeah I knew there was potential for errors, but MapMagic had worked fine up until this point. I feel it may have been related to the fact that the scene was loaded directly at startup and maybe those resources weren't available.

I tried reinstalling the package to see if it suggested that any of the missing icons were actually missing, but that did not show any changes to be made. I then deleted the MapMagic2 folder entirely and reinstalled and all is working again. I am going to make sure that I close the scene before closing the editor and see if the issue comes up in the future.

Leave a comment