0 votes

Hello. How can i show touch screenbuttons only on android devices? I use Canvas Layer for three of my buttons, and they are always showing on screen, even on pc version of the game

asked Dec 20, 2016 in Engine by everancii (20 points)

1 Answer

+1 vote
Best answer

Not sure if restricted to Android but TouchScreenButton has the visibility mode option where you can put TouchScreenOnly.

Also via code with set_visibility_mode.

In project settings>display you can toggle emulate touchscreen to see the buttons in touch screen only mode.

answered Dec 20, 2016 by eons (7,540 points)
selected Dec 21, 2016 by everancii

thank you, this is what i want

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.