{"id":1943,"date":"2022-08-04T16:06:25","date_gmt":"2022-08-04T16:06:25","guid":{"rendered":"https:\/\/golemitegames.com\/?post_type=docs&#038;p=1943"},"modified":"2022-08-04T16:11:58","modified_gmt":"2022-08-04T16:11:58","password":"","slug":"gridobject-2","status":"publish","type":"docs","link":"https:\/\/golemitegames.com\/index.php\/docs\/gridobject-2\/","title":{"rendered":"GridObject"},"content":{"rendered":"\n<p>This class is added to every placed object by default. It holds important information about its position, rotation, grid and many other things. These are all available to <strong>get<\/strong> and <strong>set<\/strong> via getting  <\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>GridObject.Data objData = obj.GetComponent&lt;GridObject&gt;().data;<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px\">public void ReapplyOriginalMaterials()<\/h2>\n\n\n\n<p>This function can be called on the base <strong>GridObject<\/strong> class.<\/p>\n\n\n\n<p><strong>GridObject<\/strong> gets and holds its own materials on component start for reapplication later. This method can then be called to reapply these materials to the obj and children. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This class is added to every placed object by default. It holds important information about its position, rotation, grid and many other things. These are all available to get and set via getting public void ReapplyOriginalMaterials() This function can be called on the base GridObject class. GridObject gets and holds its own materials on component [&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":[45],"doc_tag":[],"class_list":["post-1943","docs","type-docs","status-publish","hentry","doc_category-scripting-gridbuilder2"],"acf":[],"aioseo_notices":[],"year_month":"2026-04","word_count":83,"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":"Scripting","term_url":"https:\/\/golemitegames.com\/index.php\/docs-category\/scripting-gridbuilder2\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1943","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=1943"}],"version-history":[{"count":3,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1943\/revisions"}],"predecessor-version":[{"id":1946,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1943\/revisions\/1946"}],"wp:attachment":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/media?parent=1943"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_category?post=1943"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=1943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}