I’m developing an android app with touch buttons using PointerDown.
I have 2 buttons. And calling the following functions in their EventTrigger - PointerDown
public void LRotate()
{
Debug.Log ("Left");
target.transform.eulerAngles += new Vector3(0, 0.5f, 0);
}
public void RRotate()
{
Debug.Log ("Right");
target.transform.eulerAngles += new Vector3(0, -0.5f, 0);
}
During runtime, when the button is pressed down, It calls only one time. Not rotating continuously till the button is up. How to do this?