- edited description
OdinEditorWindow shows an extra "Serialized Data Mode Controller" in Unity 2022.2.2
Reproduce steps:
a. Create an editor window using the following code:
using System;
using UnityEngine;
using UnityEditor;
using Sirenix.OdinInspector.Editor;
public class TestEditorWindow : OdinEditorWindow
{
[MenuItem("Test/TestEditorWindow")]
private static void Open()
{
GetWindow<TestEditorWindow>().Show();
}
}
b. Open that window, you will see:
That “Serialized Data Mode Controller” should not be shown.
My guess of the reason:
In Unity 2022 EditorWindow class added the following codes:
[SerializeField]
internal DataModeController m_SerializedDataModeController;
without the [HideInInspector] attribute.
Please fix that if you can, thanks.
Comments (8)
-
reporter -
reporter - changed title to OdinEditorWindow shows an extra "Serialized Data Mode Controller" in Unity 2022.2.2
-
Any fix for this issue? I need to ship a build with Unity 2022.2.3 where it’s also present and this ugly text keeps appearing
-
I’m getting this too
-
Anybody found any workarounds for this yet?
-
I just updated to the latest Odin Inspector and it went away
-
That seems to fix it, thanks
-
- changed status to resolved
The issue was resolved in Odin 3.1.11. Unity added a new, unhidden field to their EditorWindow class, requiring us to create a special case to conceal it. If you're still experiencing this issue, consider updating.
- Log in to comment