Skip to content

Instantly share code, notes, and snippets.

@IshidaGames
Created June 11, 2019 11:31
Show Gist options
  • Save IshidaGames/7e71ae41810d9ce8dc59b487f4312263 to your computer and use it in GitHub Desktop.
Save IshidaGames/7e71ae41810d9ce8dc59b487f4312263 to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//UI使うときに必要
using UnityEngine.UI;
public class Choice : MonoBehaviour
{
Button button;
void Start()
{
button = GameObject.Find("Canvas/ButtonSummary/Button").GetComponent<Button>();
//ボタンが選択された状態になる
button.Select();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment