{"id":1140,"date":"2025-03-12T14:29:45","date_gmt":"2025-03-12T14:29:45","guid":{"rendered":"https:\/\/www.portalsunited.com:443\/?post_type=docs&#038;p=1140"},"modified":"2025-03-12T17:45:15","modified_gmt":"2025-03-12T17:45:15","password":"","slug":"world-builder-buttons","status":"publish","type":"docs","link":"https:\/\/www.portalsunited.com:443\/docs\/world-builder-buttons\/","title":{"rendered":"World Builder &#8211; Buttons"},"content":{"rendered":"\n<p>Buttons are special objects that can be used for any purpose that a real world button would have. They are generally made up of a <em>pushed object<\/em> and a <em>fixed object<\/em>.<\/p>\n\n\n\n<p>Buttons have many settings in the inspector. Some of the important ones are:<\/p>\n\n\n\n<p><strong>Push Depth:<\/strong> The distance between the pushed object and the fixed object. The button triggers when the pushed object reaches the specified push depth.<\/p>\n\n\n\n<p><strong>Clicked Signal:<\/strong> At least one true\/false signal needs to be connected to the button in order for it to have an effect.<\/p>\n\n\n\n<p><strong>Button Mode:<\/strong> In &#8220;UI&#8221; mode, the pushed object and fixed object are customizable 2D planes. The pushed plane can display text and\/or an icon. The fixed plane serves as a background or border.<br>In &#8220;Mesh&#8221; mode, the pushed object and fixed object can be chosen from the available 3D model assets in the project.<\/p>\n\n\n\n<p><strong>Push Mode:<\/strong>  In &#8220;Click&#8221; mode, any connected signal will be set to <em>true<\/em> for one frame and then back to <em>false<\/em> in the next frame. <br>In &#8220;Toggle&#8221; mode,  any connected signal will be set to <em>true<\/em> when the button is pushed and <em>false<\/em> when it is pushed again.<br>In &#8220;Hold&#8221; mode, any connected signal will send <em>true <\/em>every frame as long as the button is held down.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/www.portalsunited.com:443\/wp-content\/uploads\/2025\/03\/Image-Sequence_042_0000.jpg\" alt=\"\" class=\"wp-image-1184\"\/><\/figure>\n\n\n\n<p><strong>See also:<\/strong><br><a href=\"https:\/\/www.portalsunited.com:443\/docs\/world-builder-signals\/\" data-type=\"docs\" data-id=\"155\">World Builder \u2013 Signals<\/a><br><a href=\"https:\/\/www.portalsunited.com:443\/docs\/world-builder-inspectors\/\" data-type=\"docs\" data-id=\"242\">World Builder \u2013 Inspectors<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Buttons are special objects that can be used for any purpose that a real world button would have. They are generally made up of a pushed object and a fixed object. Buttons have many settings in the inspector. Some of the important ones are: Push Depth: The distance between the pushed object and the fixed&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"doc_category":[21],"doc_tag":[],"class_list":["post-1140","docs","type-docs","status-publish","hentry","doc_category-world-builder-location-view"],"year_month":"2025-08","word_count":220,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"jason.horn","author_nicename":"jason-horn","author_url":"https:\/\/www.portalsunited.com:443\/author\/jason-horn\/"},"doc_category_info":[{"term_name":"World Builder - Location View","term_url":"https:\/\/www.portalsunited.com:443\/docs-category\/world-builder-location-view\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs\/1140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/comments?post=1140"}],"version-history":[{"count":4,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs\/1140\/revisions"}],"predecessor-version":[{"id":1190,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs\/1140\/revisions\/1190"}],"wp:attachment":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/media?parent=1140"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/doc_category?post=1140"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/doc_tag?post=1140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}