{"id":1814,"date":"2022-07-30T13:42:48","date_gmt":"2022-07-30T13:42:48","guid":{"rendered":"https:\/\/golemitegames.com\/?post_type=docs&#038;p=1814"},"modified":"2022-07-30T14:00:21","modified_gmt":"2022-07-30T14:00:21","password":"","slug":"general-settings-9","status":"publish","type":"docs","link":"https:\/\/golemitegames.com\/index.php\/docs\/general-settings-9\/","title":{"rendered":"General Settings"},"content":{"rendered":"\n<p>GridObjectOptions allows the use of showing a menu on object select and moving an object from its current position. This is of course be expanded to include many other options depending on your game type. You may wish to add an upgrade function here, or include an option to use the object remover to remove it.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">menu canvas<\/h2>\n\n\n\n<p>This canvas will be display when you select an object via left clicking on it. It will also snap its position to that of the placeable object. You will need an object selector in the scene for this to work correctly. You can find a ready made prefab for this under the Prefabs folder.  <\/p>\n\n\n\n<p>Do not forgot to set this canvas to <strong>World Space<\/strong> and assign your main camera in the camera slot. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"463\" height=\"139\" src=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-29.png\" alt=\"\" class=\"wp-image-1818\" srcset=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-29.png 463w, https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-29-300x90.png 300w\" sizes=\"(max-width: 463px) 100vw, 463px\" \/><\/figure>\n\n\n\n<p>Also you will need to link up your buttons for functions. See below we have linked our scenes GridObjectOptions object to the button and selected the move function on click.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"452\" height=\"391\" src=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-28.png\" alt=\"\" class=\"wp-image-1817\" srcset=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-28.png 452w, https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-28-300x260.png 300w\" sizes=\"(max-width: 452px) 100vw, 452px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">menu hover<\/h2>\n\n\n\n<p>By default the menu will appear just above the object. It gets the objects height from its collider and adds the value in <strong>Menu Hover<\/strong> to give the final Y value of the <strong>Menu Canvas<\/strong>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Drag move<\/h2>\n\n\n\n<p>Enables you to drag objects to move them without opening a menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"480\" height=\"270\" src=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/Dragging_objects.gif\" alt=\"\" class=\"wp-image-1821\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Drag after select<\/h2>\n\n\n\n<p>This still enables dragging, but you will have to select the object on the first click, and then you can move the object on the second click and drag. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>GridObjectOptions allows the use of showing a menu on object select and moving an object from its current position. This is of course be expanded to include many other options depending on your game type. You may wish to add an upgrade function here, or include an option to use the object remover to remove [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"doc_category":[43],"doc_tag":[],"class_list":["post-1814","docs","type-docs","status-publish","hentry","doc_category-gridobjectoptions"],"acf":[],"aioseo_notices":[],"year_month":"2026-05","word_count":244,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"rickitz5h","author_nicename":"rickitz5h","author_url":"https:\/\/golemitegames.com\/index.php\/author\/rickitz5h\/"},"doc_category_info":[{"term_name":"GridObjectOptions","term_url":"https:\/\/golemitegames.com\/index.php\/docs-category\/gridobjectoptions\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/comments?post=1814"}],"version-history":[{"count":5,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1814\/revisions"}],"predecessor-version":[{"id":1822,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1814\/revisions\/1822"}],"wp:attachment":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/media?parent=1814"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_category?post=1814"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=1814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}