0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

UnityのInputActionMapをDisableできなかった話

0
Posted at

症状

InputActionAssetに作成したInputActionMapをStart内で編集し、Disableしたが、Updateでは何故かEnable状態になっている。

原因かもしれないこと

InputActionAssetを「プロジェクトワイド」に設定している。

・プロジェクトワイドに設定されたアセット内のInputActionMapはどこかのタイミング(すくなくとも、最初からあるオブジェクトのStartの後)で全部Enabledされるみたいです。意味不明。なんでこんな設定にした?

・Updateでテキトーな条件(aキーが押されたとき)でDisableしたら無効化できましたが、プロジェクトワイドの設定を外す事をお勧めします。プロジェクトワイドじゃないInputActionAssetは最初は全部Disable状態です。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?