5argon / NotchSolution

A set of components and tools to solve notched/cutout phones layout problems for Unity.
http://exceed7.com/notch-solution
MIT License
668 stars 91 forks source link

Exception thrown while invoking #58

Open yingnierxiao opened 3 years ago

yingnierxiao commented 3 years ago

Exception thrown while invoking [DidReloadScripts] method 'E7.NotchSolution.Editor.NotchSimulator:OnScriptsReloaded ()' : NullReferenceException: Object reference not set to an instance of an object E7.NotchSolution.MockupCanvas.UpdateMockupSprite (UnityEngine.Sprite sprite, UnityEngine.ScreenOrientation orientation, System.Boolean simulate, System.Boolean flipped, UnityEngine.Color prefabModeOverlayColor) (at Library/PackageCache/com.e7.notch-solution@c5feabc4a6/Runtime/Base/MockupCanvas.cs:27) E7.NotchSolution.Editor.NotchSimulator.UpdateAllMockups () (at Library/PackageCache/com.e7.notch-solution@c5feabc4a6/Editor/Simulator/NotchSimulator.cs:327) E7.NotchSolution.Editor.NotchSimulator.OnScriptsReloaded () (at Library/PackageCache/com.e7.notch-solution@c5feabc4a6/Editor/Simulator/NotchSimulator.cs:269)

Markovicho commented 3 years ago

I get this message also every time when i start the editor:

image