Not working in 2017.4.8 with error: InvalidCastException: Cannot cast from source type to destination type.

Issue #450 resolved
Eric Zhang created an issue

There is a error in console after import the plugin: InvalidCastException: Cannot cast from source type to destination type. Sirenix.OdinInspector.Editor.CustomEditorUtility.ResetCustomEditors () (at C:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Config/EditorOnlyModeConfig.cs:262) Sirenix.OdinInspector.Editor.InspectorConfig.UpdateOdinEditors () (at C:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Config/InspectorTypeDrawingConfigDrawer.cs:31) Sirenix.OdinInspector.Editor.InspectorConfig.<UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize>b18_0 () (at C:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Config/InspectorTypeDrawingConfigDrawer.cs:516) Sirenix.OdinInspector.Editor.UnityEditorEventUtility+<>cDisplayClass0_0.<DelayAction>b4 () (at C:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Misc/EmittedGradientContainer.cs:25) Sirenix.OdinInspector.Editor.UnityEditorEventUtility+<>cDisplayClass0_0.<DelayAction>b__2 () UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:127)

and the Inspector not change at all.

Odin_bug.png

Comments (1)

  1. Tor Esa Vestergaard

    It looks like you are using a very old version of Odin (1.0.5.3?), and this issue was likely fixed a very long time ago. Please upgrade to the latest version of Odin.

    I'm going to mark this issue as resolved, meanwhile - if you still experience it, please comment on this issue again with further details, using the list of questions that is presented to you when you are creating your issue.

  2. Log in to comment