Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこれをスクリプトに持っています:
Button button = GameObject.FindGameObjectWithTag("MainCanvas").GetComponentInChildren<Button>();
そして、そのスクリプトの Update() 関数で、次のようなことをしたいと思います:
if button clicked { // do something }
誰かが私がこれを行う方法を説明できますか?