UI Button for adding torque/force continuously until the button being pressed

Hi,
I want to use the UI button to provide the force/torque for the Gameobject(Rigidbody). Initially, I tried with the keyboard button, it worked properly. It gave the force/torque continuously until I press the key and when I release the button, the force/torque went to zero. But the same thing, I tried with the UI Button, it didn’t work like previous. When I press the button, it gave discrete force/torque to the Gameobject, even after holding the button it didn’t give the force/torque to the game object, It made me to click the button again and again to give the force/torque.

Please suggest some other way to give/stop the force/torque to game object continuously until I press/release.

What it sounds like you want is a RepeatButton, rather than a Button

Hi, Thanks for your support. I cracked the issue using the same button element, but with the use of the pointer up and pointer down in the event trigger.