Join our Discord Channel
There is no input called "off light".If you want the Input named "Horizontal" to turn affect the light then you need to type Horizontal in the button name.
Get Button is referring to the Input Manager for a name.It has nothing to do with the objects in the scene.
Just Horizontal, it will read the setting in Input Manager and use the keys you specify there for Positive and Negative.
If you want to use the Button actions you need to tell it to use some control name in the Input Manager, then set that Input up with the keys you want to use. Otherwise you could use Get Key and tell it which key on the keyboard to use.
Do you want to know when the key is up/down? Or do you want to store its status in a bool?