{"id":2410,"date":"2025-11-17T22:00:35","date_gmt":"2025-11-17T22:00:35","guid":{"rendered":"https:\/\/golemitegames.com\/?post_type=docs&#038;p=2410"},"modified":"2025-11-21T21:16:04","modified_gmt":"2025-11-21T21:16:04","password":"","slug":"item-slot","status":"publish","type":"docs","link":"https:\/\/golemitegames.com\/index.php\/docs\/item-slot\/","title":{"rendered":"Item Slot"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Introduction<\/h2>\n\n\n\n<p>This component handles refreshing the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/inventory-item-slot\/\" title=\"Inventory Item Slot\">Inventory Item slots<\/a> and <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/blueprint-select-slot\/\" title=\"Blueprint Select Slot\">Blueprint Select Slots<\/a> materials.<\/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 ItemSlot located in \/prefabs\/UI.<br><br>Setting up without the prefab otherwise is easy, it needs only 2 other components to work, and Image for the Icon, TMP component for Count. <br><br>This component should be placed under a Canvas.<\/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>Item Image<\/strong><br>The Image component to display the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item\/\" title=\"Item\">Item&#8217;s<\/a> Icon. <br><br><strong>Count Text<\/strong><br>The TextMeshProUGUI component to display the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-amount\/\" title=\"Item Amount\">ItemAmount&#8217;s<\/a> Amount. <br><\/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\/\/\/ The ItemAmount this ItemSlot is holding\n\/\/\/ &lt;\/summary&gt;\npublic ItemAmount ItemAmount\n\n\/\/\/ &lt;summary&gt;\n\/\/\/ Refreshes this ItemSlot Icon and Count\n\/\/\/ &lt;\/summary&gt;\npublic void RefreshItemSlot()<\/code><\/pre><\/div>\n\n\n\n<p><br><br><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This component handles refreshing the Inventory Item slots and Blueprint Select Slots materials. Setting up There is a prefab ItemSlot located in \/prefabs\/UI. Setting up without the prefab otherwise is easy, it needs only 2 other components to work, and Image for the Icon, TMP component for Count. This component should be placed under [&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-2410","docs","type-docs","status-publish","hentry","doc_category-resource-and-production"],"acf":[],"aioseo_notices":[],"year_month":"2026-04","word_count":106,"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\/2410","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=2410"}],"version-history":[{"count":3,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2410\/revisions"}],"predecessor-version":[{"id":2563,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2410\/revisions\/2563"}],"wp:attachment":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/media?parent=2410"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_category?post=2410"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=2410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}