Fix mobile selection on input boxes

This commit is contained in:
2026-01-25 22:08:30 -07:00
parent 1dcd8c4ae5
commit 135e4cc899
16 changed files with 133 additions and 94 deletions

View File

@@ -320,6 +320,7 @@ public class ProfileMenu : MonoBehaviour
popupObject = popup;
popup.SetActive(true);
var inputBox = popup.transform.GetChild(0).GetChild(1).GetComponent<TMP_InputField>();
inputBox.onSelect.AddListener((_) => inputBox.caretPosition = inputBox.text.Length);
var cancelButton = popup.transform.GetChild(0).GetChild(2).GetComponent<Button>();
var submitButton = popup.transform.GetChild(0).GetChild(3).GetComponent<Button>();
cancelButton.onClick.AddListener(() =>