Conflict with other plugins
We have a reference to a pool script like you can see in "normal Editor.png". That component has a custom inspector ("Pool Custom Editor.PNG" image). When I install odin they launch infinite exceptions trying to show that reference, and the reference doesn't show in the inspector ("Odin Editor.PNG" image).
I attach errors stacks in images.
The Unity version is: 5.5.1p2. The odin version is: 1.0.4.1 The operating system: windows 8.1
Comments (3)
-
-
- changed status to open
Worst case scenario, you can also disable Odin completely for that type in the Window > Odin Inspector > Preferences > Editor Types window.
-
- changed status to resolved
We now catch NotImplementedExceptions and NotSupportedExceptions when checking the IsReadOnly property on IList's, and assume that the list is not ReadOnly when those are thrown (as this is the more normal case).
- Log in to comment
Hi there,
Thank's for the screenshots, and the good info.
It looks like SpawnPool.cs, implements the IList<T> interface but, throws a NotImplementedException in the IsReadOnly property. So when we ask whether or not it is okay for us to modify the list, all hell breaks loose. We'll make sure to do this in a try-catch statement, and catch the NotImplementedException, to avoid the error.
I would suggest implementing the IsReadOnly property. (In most cases you either need to return true are false). Just find the throw new NotImplementedException() at line 1088, and replace it with "return true/false;"
Hope that helps, and gets things back to normal. If you can't modify the script for some reason, feel free to send us an email with your Invoice ID for Odin, and we'll send you a hotfix.