If GUI.button pressed it acts as if the down key is being pressed ?

Hey I got stuck im trying to figure out how I could make it when a Gui.button is pressed it acts as if pressing the down key on the keyboard rather than pressing the down key - Im using JavaScript? I hope this explanation is good enough not too good at explanations.

Thank you in Advance!

Did you mean holding key?

Cause it will be on phone I want when the button is held in it cause it to think its pressing down on the keyboard so I joins with the movement script I have

There is another mechanics with touchpades. Unity - Scripting API: Touch.phase
I guess you’ve requested for this
Unity - Scripting API: Input.GetTouch

Well I don’t really want the script to move the player because the movements in another script which moves the player if a directional key is pressed so I was hoping I could just have a script that will act as if its pushing down, since the computer version doesn’t need it but the mobile version does.

and I have 4 directional arrow graphics to use as the movement

Not sure is that possible. Generally, you have to make an interface for your player’s movement, and implements it according to your input device.
If you will find solution let me know please. I’m interested too

Hmm cause the Character Animation Script I have is written in C# and im not sure how to create a button that makes you move :confused:

Can you send me that script? I’ll try to help you