1
0
mirror of https://github.com/originalnicodr/CinematicUnityExplorer.git synced 2026-10-10 13:03:15 +08:00

C# Console: Fix autocomplete caret deselection

This commit is contained in:
Sinai
2022-04-22 09:06:52 +10:00
parent 08f2c6035e
commit f174c7543a
+3 -8
View File
@@ -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;