Skip to content

Clarify TouchScreenButton operation & use.

Rafał Mikrut requested to merge github/fork/follower/patch-7 into master

Created by: follower

Clarifies the ways in which a TouchScreenButton differs in operation from a Control-based node like Button.

Adds (implied) clarification that TouchScreenButtons are not affected by the usual layout controls and hints at how this can be worked-around.

Most of the text for the first paragraph is from @reduz here: https://github.com/godotengine/godot/issues/15039#issuecomment-353887848

Layout workaround mentioned by @Calinou here: https://github.com/godotengine/godot/issues/28814#issuecomment-491410744

This came about in the process of trying to answer the query "Need UI Advice .. mixing Node2D with control?" here: https://old.reddit.com/r/godot/comments/f2imur/need_ui_advice_mixing_node2d_with_control/

Additional references:


Note: I haven't checked this edit via the documentation generation system...because I'm a terrible person. :D (And because I can't do it through the web interface--yet. :) ) But hopefully it's better than nothing--feel free to close/modify as desired. Thanks!

Merge request reports