PlayerController.cs中のInput.GetAxisをvarで取得するのはなぜでしょうか? | Unity Forum | Tech Stadium Forum

PlayerController.cs...
 
通知
すべてクリア

PlayerController.cs中のInput.GetAxisをvarで取得するのはなぜでしょうか?  

  RSS

Student
(@student)
メンバー Moderator
結合: 5年前
投稿: 1522
21/07/2025 3:17 pm  

PlayerController.cs中のInput.GetAxisをvarで取得するのはなぜでしょうか?


引用
Teacher
(@admin)
メンバー Admin
結合: 5年前
投稿: 1447
21/07/2025 3:18 pm  
  • Input.GetAxisの戻り値は-1~1です。その値をvarに格納することで、いろんなところで使用できます。
  • inputやgetaxisなどの情報についてはunity公式サイトで見られます。

返信引用
共有:
タイトルとURLをコピーしました