using UnityEngine.EventSystems;選択状態にしたいゲームオブジェクトを設定する
EventSystem.current.SetSelectedGameObject(ゲームオブジェクト);プログラム例
using UnityEngine;
using UnityEngine.EventSystems;
public class ButtonSelect : MonoBehaviour
{
[SerializeField] GameObject button;
void Start()
{
EventSystem.current.SetSelectedGameObject(button);
}
}固定ページ: 1 2