- Home /
Unity 4.6 button movement problem
hi i'm making a button called moveup and then I add a event trigger component, then I add a new PointerDown trigger on that compnent, then I add my player to the object slot, then in the function slot I add the function OnClickMoveUp() In my function I write:
public void OnClickMoveUp() {
transform.Translate(Vector3.up * forwardSpeed * Time.deltaTime);
}
This doesnt work, I want the player to keep moving when I press the button, then stop when im not pressing the button?
Answer by unimechanic · Oct 06, 2014 at 09:27 PM
You can ask in the Beta group, where our developers could help.
Your answer
Follow this Question
Related Questions
Click Goes Everywhere 0 Answers
Modify a script to use buttons instead of keys 1 Answer
How do I create a button that toggles with the 4.6 UI? 6 Answers
[4.6 b20] How to make a hold button for the new UI 4 Answers
Can't change UI Button Listeners 1 Answer