5argon / NotchSolution

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

Upgrade from 2019.2 to 2019.3 throws exceptions in console on launch #49

Closed doctorpangloss closed 4 years ago

doctorpangloss commented 4 years ago

This also upgraded the package to the latest master branch commit because I use the git URL in my package.json.

Exception thrown while invoking [DidReloadScripts] method 'E7.NotchSolution.NotchSimulator:OnScriptsReloaded ()' : NullReferenceException: Object reference not set to an instance of an object
E7.NotchSolution.NotchSimulator.EnsureCanvasAndEventSetup (UnityEditor.Experimental.SceneManagement.PrefabStage prefabStage) (at Library/PackageCache/com.e7.notch-solution@f733ffcdcb9029548c124c17cbe2272bb5c39f65/Editor/NotchSimulator.cs:328)
E7.NotchSolution.NotchSimulator.UpdateAllMockups () (at Library/PackageCache/com.e7.notch-solution@f733ffcdcb9029548c124c17cbe2272bb5c39f65/Editor/NotchSimulator.cs:244)
E7.NotchSolution.NotchSimulator.OnScriptsReloaded () (at Library/PackageCache/com.e7.notch-solution@f733ffcdcb9029548c124c17cbe2272bb5c39f65/Editor/NotchSimulator.cs:223)
doctorpangloss commented 4 years ago

Deleting and reimporting the package fixed the issue.