Version: 2017.3
public UI.Navigation navigation ;

描述

此可选择对象的 Navigation 设置。

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