How to make optional divice?

im gonna make a optional device for my game(mobile and pc). but i dont know to make it i have already to made touch screen button,is it use global script? or something? please tell me guys to make it

What do you mean by “optional device”? I don’t get what you’re trying to do.

1 Like

i mean, if i use mobile, button will show in game, and if i use pc button will not show in game.

Check that: OS — Godot Engine (stable) documentation in English

2 Likes