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

Asset gives Error and does not work in Unity 2020.2.0f1 #56

Closed yashs-devstree closed 3 years ago

yashs-devstree commented 3 years ago

When I import the asset in Unity 2020.2.0f1 it gives me below mentioned error. I tried reopening the project but it still gives the same error.

Exception thrown while invoking [DidReloadScripts] method 'E7.NotchSolution.Editor.NotchSimulator:OnScriptsReloaded ()' : NullReferenceException: Object reference not set to an instance of an object

Also, the it does not work correctly in Unity 2020.2.0f1.

yashs-devstree commented 3 years ago

Importing the folders from latest commit over Asset Store version solved the error issue. You need to add Safe Padding script on rect not on canvas.