Skip to content

Commit

Permalink
支持Unity6
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Rachel committed Jul 14, 2024
1 parent 98cb745 commit c38d3b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public sealed partial class DebuggerModule : Module
/// </summary>
internal static readonly float DefaultWindowScale = 1.5f;

private static readonly TextEditor s_TextEditor = new TextEditor();
private static TextEditor s_TextEditor = null;
private IDebuggerManager _debuggerManager = null;
private Rect m_DragRect = new Rect(0f, 0f, float.MaxValue, 25f);
private Rect m_IconRect = DefaultIconRect;
Expand Down Expand Up @@ -146,6 +146,7 @@ public float WindowScale
protected override void Awake()
{
base.Awake();
s_TextEditor = new TextEditor();
_eventSystem = GameObject.Find("UIRoot/EventSystem");
_debuggerManager = ModuleImpSystem.GetModule<IDebuggerManager>();
if (_debuggerManager == null)
Expand Down

0 comments on commit c38d3b7

Please sign in to comment.