最終更新:2019-12-04 (水) 04:24:02 (1598d)  

Unity/ボタン
Top / Unity / ボタン

https://docs.unity3d.com/ja/current/Manual/script-Button.html

オブジェクト

構成

  • Button
    • Text

コンポーネント

Image (UnityEngine.UI.Image)

Button (UnityEngine.UI.Button)

  • Interactable
  • トランジション
    • None - No Transition.
    • ColorTint? - Use an color tint transition.
    • SpriteSwap? - Use a sprite swap transition.
    • Animation - Use an animation transition.
  • On Click()
    • どのオブジェクトのどのコンポーネントのどの関数を実行するかを選択する。
      • 実行したいスクリプトをボタン自体にコンポーネントとして追加したならそのボタンのオブジェクトを選択する

メモ

  • No Function
    • スクリプト自体を選択しても関数は選べない

TextMesh Proでボタンを作る

参考