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

Add null check to ensure that errors aren't thrown when entering playmode #68

Closed HiRoS-neko closed 11 months ago

HiRoS-neko commented 1 year ago

When entering play mode, there were errors that the item no longer existed as it was called during reload, I simply added a null check prior to calling the offending code I added the null check there as it seems to only occur in editor, so it avoids the expensive check in runtime

HiRoS-neko commented 1 year ago

This fixes #58