Hi,
I am experiencing a recurrent behaviour that seems to me like an issue.
Let’s say you have a script A with this:
If this script A is attached to 2 objects and they are both enabled:
=> Pressing the key will trigger an action as expected in both occurrences of the script A.(The 2 objects will perform the expected action).
If you disable the first object:
=> Pressing the key will not trigger anything even in the script attached to the second object that is enabled. It’s like the input system is disabled in all occurrences of that script A.
If you have a different script B that is attached to that second object, the input will work fine in the script B, but not in the script A.
This means that the input system is working everywhere else but not in the occurrences of the script A.
If you have 10 objects with the script A, you disable one of them, the input system will stop responding for the 9 others.
I am using a workaround:
I created an empty game object with the script A. And each time I disable one object that has the script A, I have to disable the empty game object then enable it to make the input system work again in all occurrences of the script A.
For me, this behaviour does not make sense.
Am I missing something?
Thanks