手机端怎么制作虚拟按键//スマホ端末での仮想ボタン作成方法について//How to create virtual buttons for mobile devices

I’m trying to make virtual buttons for mobile, but even after adding scripts to Area2D or TouchScreenButton nodes, the corresponding input commands aren’t being sent to the game. Are there any effective methods to get this working?

Did you already try method in this post?

I tried it—using the mouse to simulate touch input—but it doesn’t trigger the action.

I haven’t tried the method in the post from this link yet, but I’m going to give it a shot now.

You’re welcome! I used the nodes from this example to set up the buttons successfully, meow.

1 Like