LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Navigation.selectOnDown

public UI.Selectable selectOnDown;

Description

Selectable to select on down.

using UnityEngine;
using System.Collections;
using UnityEngine.UI;  // Required when Using UI elements.

public class SelectedCheck : MonoBehaviour { public Button btnSave; public Button btnLoad;

public void Start() { //makes the Load button selectable if the down arrow key is pressed btnSave.navigation.selectOnDown = btnLoad; } }