Version: 2017.1

Navigation.defaultNavigation

Cambiar al Manual
public static UI.Navigation defaultNavigation ;

Descripción

Return a Navigation with sensible default values.

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; } }