diff --git a/src/CSConsole/ConsoleController.cs b/src/CSConsole/ConsoleController.cs index d696d83..a65f3fa 100644 --- a/src/CSConsole/ConsoleController.cs +++ b/src/CSConsole/ConsoleController.cs @@ -390,16 +390,11 @@ namespace UnityExplorer.CSConsole color.a = 0f; Input.Component.selectionColor = color; - EventSystemHelper.SetSelectedGameObject(null); - - yield return null; // ~~~~~~~ YIELD FRAME ~~~~~~~~~ - - EventSystemHelper.SetSelectedGameObject(null); - - yield return null; // ~~~~~~~ YIELD FRAME ~~~~~~~~~ - + EventSystemHelper.SetSelectionGuard(false); Input.Component.Select(); + yield return null; // ~~~~~~~ YIELD FRAME ~~~~~~~~~ + Input.Component.caretPosition = caretPosition; Input.Component.selectionFocusPosition = caretPosition; LastCaretPosition = Input.Component.caretPosition;