{"id":2358,"date":"2025-11-16T20:55:28","date_gmt":"2025-11-16T20:55:28","guid":{"rendered":"https:\/\/golemitegames.com\/?post_type=docs&#038;p=2358"},"modified":"2025-11-21T20:42:18","modified_gmt":"2025-11-21T20:42:18","password":"","slug":"resource-and-production-manager","status":"publish","type":"docs","link":"https:\/\/golemitegames.com\/index.php\/docs\/resource-and-production-manager\/","title":{"rendered":"Resource And Production Manager"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Introduction<\/h2>\n\n\n\n<p>This Manager class keeps hold of all <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/resource-node\/\" title=\"Resource Node\">Resource Nodes<\/a>, <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">Item Containers<\/a> and <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/crafter\/\" title=\"Crafter\">Crafters<\/a> currently in the scene. <br><br>It also has some of the global settings for the asset. This is a required component for the asset to work.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Setting up<\/h2>\n\n\n\n<p>There is a prefab ResourceAndProductionManager located in \/prefabs\/Managers which contains all the necessary prefabs for the system to work.  <br><br>Setting up otherwise is as simple as adding the component to a gameobject.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Settings<\/h2>\n\n\n\n<p><strong>Miner<\/strong><br>This component must be assigned for the system to work, assign a <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/miner\/\" title=\"Miner\">Miner<\/a> to use the system. The <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/miner\/\" title=\"Miner\">Miner&#8217;s<\/a> soul responsibility is how much hit damage is done. <br><br><strong>Main Camera<\/strong><br>This component must be assigned for the system to work, assign a Camera to use the system. There a several presets for the cameras set up in \/prefabs\/ControlModes to use. <br><br><strong>Float Precision<\/strong><br>The global precision of <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-amount\/\" title=\"Item Amount\">ItemAmounts<\/a> where the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item\/\" title=\"Item\">Item&#8217;s<\/a> Precision Type is Float. A value of 1 will produce something like 1.1 while a value of 2 will be something like 1.25. <br><br><strong>Debugging<\/strong><br>If enabled, produces various pieces of information in the console log. With lots of Resource And Production components in the scene this may be a lot. Try and isolate the components you are debugging before enabling this setting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Scripting<\/h2>\n\n\n\n<p>There is only one public function to use, which is for the built in preset controllers. <\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-lang=\"C#\" data-show-lang=\"0\"><code>\/\/\/ &lt;summary&gt;\n\/\/\/ Enable or Disable the player controllers if not null\n\/\/\/ &lt;\/summary&gt;\n\/\/\/ &lt;param name=&quot;enable&quot;&gt;&lt;\/param&gt;\npublic void EnableDisableControllers(bool enable)<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This Manager class keeps hold of all Resource Nodes, Item Containers and Crafters currently in the scene. It also has some of the global settings for the asset. This is a required component for the asset to work. Setting up There is a prefab ResourceAndProductionManager located in \/prefabs\/Managers which contains all the necessary prefabs [&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":[46],"doc_tag":[],"class_list":["post-2358","docs","type-docs","status-publish","hentry","doc_category-resource-and-production"],"acf":[],"aioseo_notices":[],"year_month":"2026-04","word_count":248,"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":"Resource And Production","term_url":"https:\/\/golemitegames.com\/index.php\/docs-category\/resource-and-production\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2358","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=2358"}],"version-history":[{"count":5,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2358\/revisions"}],"predecessor-version":[{"id":2547,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2358\/revisions\/2547"}],"wp:attachment":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/media?parent=2358"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_category?post=2358"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=2358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}