The Navigation setting for this selectable object.
#pragma strict // Required when Using UI elements. public var button; function Start() { //Set the navigation to the default value. ("Automatic" is the default value). button.navigation = Navigation.defaultNavigation; }
using UnityEngine; using System.Collections; using UnityEngine.UI; // Required when Using UI elements.
public class ExampleClass : MonoBehaviour { public Button button;
void Start() { //Set the navigation to the default value. ("Automatic" is the default value). button.navigation = Navigation.defaultNavigation; } }
Did you find this page useful? Please give it a rating: