Created
September 18, 2019 03:50
-
-
Save namrog84/ece87992b8724a8307be84f9052ab7e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
public class TabToNextController : MonoBehaviour, IUpdateSelectedHandler | |
{ | |
public Selectable nextField; | |
public void OnUpdateSelected(BaseEventData data) | |
{ | |
if (Input.GetKeyDown(KeyCode.Tab)) | |
nextField.Select(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment