{"id":1695,"date":"2022-07-27T14:51:44","date_gmt":"2022-07-27T14:51:44","guid":{"rendered":"https:\/\/golemitegames.com\/?post_type=docs&#038;p=1695"},"modified":"2022-07-27T16:12:19","modified_gmt":"2022-07-27T16:12:19","password":"","slug":"auto-cell-block-2","status":"publish","type":"docs","link":"https:\/\/golemitegames.com\/index.php\/docs\/auto-cell-block-2\/","title":{"rendered":"Auto Cell Block"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"795\" height=\"450\" src=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-9.png\" alt=\"\" class=\"wp-image-1697\" srcset=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-9.png 795w, https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-9-300x170.png 300w, https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-9-768x435.png 768w\" sizes=\"(max-width: 795px) 100vw, 795px\" \/><\/figure>\n\n\n\n<p>This feature blocks cells by marking the cell as used. This in turn gives some freedom when building grids around other objects like rocks or cliffs. It also has the innate ability to create the cells in any shape you like, such as a layout of a house, town, ship, or any other design you choose.<\/p>\n\n\n\n<p>It can block cells checking for objects on or above the grid.<\/p>\n\n\n\n<p>It also can check to see if there is anything underneath the grid.<\/p>\n\n\n\n<p>You can of course have the choice of prefabs to place or not place in both instances.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Auto Cell Blocking<\/h2>\n\n\n\n<p>Turns the auto cell blocking feature on or off.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Auto Update<\/h2>\n\n\n\n<p>After you have created a grid preview, you can then enable this to get a live update when you change any other <strong>Auto Cell Block<\/strong> settings. This slider adjusts how transparent the <strong>Auto Cell Block<\/strong> preview is.<\/p>\n\n\n\n<p>This field only affects the editor view. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Transparency<\/h2>\n\n\n\n<p>This slider adjusts how transparent the <strong>Auto Cell Block<\/strong> preview is.<\/p>\n\n\n\n<p>This field only affects the editor view. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Create<\/h2>\n\n\n\n<p>Creates a preview for your <strong>Auto Cell Block<\/strong>. Green is available, red is not. You can use <strong>Auto Update<\/strong> after creating a preview to really see how useful this feature is. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"783\" height=\"456\" src=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-10.png\" alt=\"\" class=\"wp-image-1701\" srcset=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-10.png 783w, https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-10-300x175.png 300w, https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/07\/image-10-768x447.png 768w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Update<\/h2>\n\n\n\n<p>Update will become available after creating a preview. Clicking update after changing some other <strong>Auto Cell Block<\/strong> settings will rebuild the preview. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Remove<\/h2>\n\n\n\n<p>Deletes the current preview. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Block Type<\/h2>\n\n\n\n<p>This allows you to choose what to block, objects above ot level with the grid, the void beneath the grid, or both in combination.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Ground Layer<\/h2>\n\n\n\n<p>The ground layer is the layer your actual terrain or ground objects will have to be on for this feature to work. Objects that are being blocked above the grid can be on any layer. For removing cells if there is a void, the terrain will need to be on this assigned layer. This is an integer that represents the layer. See Unity documentation about creating a new layer and adding your objects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Ground Distance<\/h2>\n\n\n\n<p>The ground distance is how far the below rays check to find the ground. The rays should always be going just past the ground to work properly. See <strong>Show Below Rays <\/strong>to make this easier.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Above Check Box Size<\/h2>\n\n\n\n<p>This increases the size of the box created from the centre of each cell. The larger you create this box, the more removed cells or space around the collision objects you will have. See <strong>Show Above Box Colliders <\/strong>to get a better understanding of how this is working.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"875\" height=\"392\" src=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/03\/image-8.png\" alt=\"\" class=\"wp-image-1275\" srcset=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/03\/image-8.png 875w, https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/03\/image-8-300x134.png 300w, https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/03\/image-8-768x344.png 768w\" sizes=\"(max-width: 875px) 100vw, 875px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Above Check Box Height<\/h2>\n\n\n\n<p>This will project a box from the grid upwards checking for objects with colliders attached. If you have bridges and would like to remove the cells underneath them, increasing this value may help. Again checking <strong>Show Above Box Colliders <\/strong>would help see how this is being applied. <\/p>\n\n\n\n<p>By default these boxes start at the grid height.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Check Box Offset<\/h2>\n\n\n\n<p>This affects the Y axis offset of the <strong>Above Check Box Height<\/strong>&#8216;s boxes. <\/p>\n\n\n\n<p>A value of 0 will leave them on grids Y value.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Show Above Box Colliders<\/h2>\n\n\n\n<p>This just gives a visual representation of the box colliders created from the centre of each cell.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Show Below Rays<\/h2>\n\n\n\n<p>Shows the rays created from each cell point. They should intersect the ground layer geometry slightly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">Check Ground Hits<\/h2>\n\n\n\n<p>Checking this will give you a debug.log of all the distances of all the points in the grid. Most commonly the log with the most same hits will determine the distance between the grid, and the largest flattest part of your terrain. You can increase this value slightly and then use it for your <strong>Ground Distance.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"472\" height=\"639\" src=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/03\/image-9.png\" alt=\"\" class=\"wp-image-1277\" srcset=\"https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/03\/image-9.png 472w, https:\/\/golemitegames.com\/wp-content\/uploads\/2022\/03\/image-9-222x300.png 222w\" sizes=\"(max-width: 472px) 100vw, 472px\" \/><figcaption>Quite clearly here the grid is set 0.018 metres above the object in the <strong>Ground Laye<\/strong>r.<br>So perhaps a value of 0.02 could be used as the <strong>Ground Distance<\/strong>.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This feature blocks cells by marking the cell as used. This in turn gives some freedom when building grids around other objects like rocks or cliffs. It also has the innate ability to create the cells in any shape you like, such as a layout of a house, town, ship, or any other design you [&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":[33],"doc_tag":[],"class_list":["post-1695","docs","type-docs","status-publish","hentry","doc_category-gridsquare-gridbuilder2"],"acf":[],"aioseo_notices":[],"year_month":"2026-04","word_count":638,"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":"GridSquare","term_url":"https:\/\/golemitegames.com\/index.php\/docs-category\/gridsquare-gridbuilder2\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1695","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=1695"}],"version-history":[{"count":6,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1695\/revisions"}],"predecessor-version":[{"id":1703,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1695\/revisions\/1703"}],"wp:attachment":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/media?parent=1695"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_category?post=1695"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}