{"id":5717,"date":"2021-05-19T22:41:40","date_gmt":"2021-05-19T22:41:40","guid":{"rendered":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/"},"modified":"2021-12-14T07:07:18","modified_gmt":"2021-12-14T07:07:18","slug":"getting-started","status":"publish","type":"docs","link":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/","title":{"rendered":"Getting Started"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Create a Foliage Data Table<\/strong><\/h2>\n\n\n\n<p>This data table will hold all foliage types that the Foliage Plugin will use and interact with.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"600\" src=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif\" alt=\"\" class=\"wp-image-559\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Create a new Blueprint of class <strong>Foliage Blueprint Actor <\/strong><\/h2>\n\n\n\n<p>This is the Actor that will be created when you interact with a Foliage Instance and converted from a Instance to an Actor.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/92b3c2805e45bda1dd77211bce32f8fb.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"600\" src=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/92b3c2805e45bda1dd77211bce32f8fb.gif\" alt=\"\" class=\"wp-image-561\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Foliage Plugin Settings<\/strong><\/h2>\n\n\n\n<p>Set the <strong>DT_Foliage<\/strong> data table that you created in the previous step<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/1-2.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/1-2-1024x546.jpg\" alt=\"\" class=\"wp-image-6597\" srcset=\"https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/1-2-1024x546.jpg 1024w, https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/1-2-300x160.jpg 300w, https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/1-2-768x410.jpg 768w, https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/1-2.jpg 1487w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Foliage Plugin Component<\/strong><\/h2>\n\n\n\n<p>When painting Foliage you must set the Default Foliage component class to &#8220;<strong>FoliagePluginComponent<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/foliage.png\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"917\" src=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/foliage.png\" alt=\"\" class=\"wp-image-563\" srcset=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/foliage.png 816w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/foliage-267x300.png 267w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/foliage-768x863.png 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Collision Settings<\/strong><\/h2>\n\n\n\n<p>If we want to interact with our Foliage then we need to customize the Collision settings, in this example we&#8217;re going to be using &#8220;<strong>BlockAll<\/strong>&#8220;, this will work fine in this example but you will probably want to use your own custom type<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/5-foliage-settings.png\"><img decoding=\"async\" src=\"http:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/5-foliage-settings-556x1024.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>adding new foliage types<\/strong><\/h2>\n\n\n\n<p>In this example we&#8217;re going to be creating a &#8220;<strong>Tree<\/strong>&#8221; resource<\/p>\n\n\n\n<p>You must make sure that the <strong>Mesh <\/strong>you paint (or spawn) is the same in the <strong>Foliage Data Table<\/strong> so that the <strong>Foliage Plugin<\/strong> knows what to do with it. You also need to set the &#8220;<strong>Foliage Actor<\/strong>&#8221; that we created in a previous step.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/2-3.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"513\" src=\"https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/2-3-1024x513.jpg\" alt=\"\" class=\"wp-image-6621\" srcset=\"https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/2-3-1024x513.jpg 1024w, https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/2-3-300x150.jpg 300w, https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/2-3-768x385.jpg 768w, https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/2-3-1536x770.jpg 1536w, https:\/\/eeldev.com\/wp-content\/uploads\/2021\/07\/2-3.jpg 2046w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Setting up your game character<\/strong><\/h2>\n\n\n\n<p>Open up your Character (or controller) blueprint and implement the &#8220;<strong>Foliage Plugin Interface<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"369\" src=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character1-1024x369.png\" alt=\"\" class=\"wp-image-570\" srcset=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character1-1024x369.png 1024w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character1-300x108.png 300w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character1-768x277.png 768w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character1.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>This will unlock some events that you can implement on your Character \/ Controller to handle what should happen when you interact with Foliage<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/eeldev.com\/index.php\/foliage-plugin-getting-started\/character2\/#main\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"692\" src=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character2-1024x692.png\" alt=\"\" class=\"wp-image-571\" srcset=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character2-1024x692.png 1024w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character2-300x203.png 300w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character2-768x519.png 768w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character2.png 1180w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Adding resources to your Inventory<\/strong><\/h2>\n\n\n\n<p>The below example is merely a simple demonstration of how we can utilize the Foliage Plugin Interface that we implemented in the previous step, to handle what happens when we interact with our <strong>Foliage<\/strong>,here we&#8217;re going to be getting the <strong>Rewards <\/strong>and adding them to our inventory. (You will need to hook this up to your own <strong>inventory system<\/strong>, this is just an example)<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"837\" src=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character3-1024x837.png\" alt=\"\" class=\"wp-image-572\" srcset=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character3-1024x837.png 1024w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character3-300x245.png 300w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character3-768x628.png 768w, https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/character3.png 1098w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>interacting with foliage<\/strong><\/h2>\n\n\n\n<p>This example uses a line trace from the Players point of view to \u201cApply Point Damage\u201d<br>Damage is handled by the <strong>Foliage Plugin<\/strong> and will convert your <strong>Foliage Instance<\/strong> to a useable \/ interactable foliage actor automatically.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/7-apply-point-damage.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/7-apply-point-damage-1024x261.png\" alt=\"\"\/><\/a><\/figure>\n","protected":false},"featured_media":0,"parent":5701,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-5717","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Getting Started - eelDev<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Started - eelDev\" \/>\n<meta property=\"og:description\" content=\"Create a Foliage Data Table This data table will hold all foliage types that the Foliage Plugin will use and interact with. Create a new Blueprint of class Foliage Blueprint Actor This is the Actor that will be created when you interact with a Foliage Instance and converted from a Instance to an Actor. Foliage ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/\" \/>\n<meta property=\"og:site_name\" content=\"eelDev\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-14T07:07:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/\",\"url\":\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/\",\"name\":\"Getting Started - eelDev\",\"isPartOf\":{\"@id\":\"https:\/\/eeldev.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif\",\"datePublished\":\"2021-05-19T22:41:40+00:00\",\"dateModified\":\"2021-12-14T07:07:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#primaryimage\",\"url\":\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif\",\"contentUrl\":\"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif\",\"width\":794,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eeldev.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Foliage Plugin\",\"item\":\"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Getting Started\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eeldev.com\/#website\",\"url\":\"https:\/\/eeldev.com\/\",\"name\":\"eelDev\",\"description\":\"eelDev.com\",\"publisher\":{\"@id\":\"https:\/\/eeldev.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eeldev.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eeldev.com\/#organization\",\"name\":\"eelDev\",\"url\":\"https:\/\/eeldev.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eeldev.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eeldev.com\/wp-content\/uploads\/2022\/12\/logo_new_transparent-4.png\",\"contentUrl\":\"https:\/\/eeldev.com\/wp-content\/uploads\/2022\/12\/logo_new_transparent-4.png\",\"width\":2048,\"height\":682,\"caption\":\"eelDev\"},\"image\":{\"@id\":\"https:\/\/eeldev.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting Started - eelDev","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/","og_locale":"en_US","og_type":"article","og_title":"Getting Started - eelDev","og_description":"Create a Foliage Data Table This data table will hold all foliage types that the Foliage Plugin will use and interact with. Create a new Blueprint of class Foliage Blueprint Actor This is the Actor that will be created when you interact with a Foliage Instance and converted from a Instance to an Actor. Foliage ... Read more","og_url":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/","og_site_name":"eelDev","article_modified_time":"2021-12-14T07:07:18+00:00","og_image":[{"url":"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/","url":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/","name":"Getting Started - eelDev","isPartOf":{"@id":"https:\/\/eeldev.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#primaryimage"},"image":{"@id":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#primaryimage"},"thumbnailUrl":"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif","datePublished":"2021-05-19T22:41:40+00:00","dateModified":"2021-12-14T07:07:18+00:00","breadcrumb":{"@id":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#primaryimage","url":"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif","contentUrl":"https:\/\/eeldev.com\/wp-content\/uploads\/2018\/07\/a36cfde41b88ba60d1fa41f8e22bc208.gif","width":794,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/getting-started\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eeldev.com\/"},{"@type":"ListItem","position":2,"name":"Foliage Plugin","item":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/"},{"@type":"ListItem","position":3,"name":"Getting Started"}]},{"@type":"WebSite","@id":"https:\/\/eeldev.com\/#website","url":"https:\/\/eeldev.com\/","name":"eelDev","description":"eelDev.com","publisher":{"@id":"https:\/\/eeldev.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eeldev.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eeldev.com\/#organization","name":"eelDev","url":"https:\/\/eeldev.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eeldev.com\/#\/schema\/logo\/image\/","url":"https:\/\/eeldev.com\/wp-content\/uploads\/2022\/12\/logo_new_transparent-4.png","contentUrl":"https:\/\/eeldev.com\/wp-content\/uploads\/2022\/12\/logo_new_transparent-4.png","width":2048,"height":682,"caption":"eelDev"},"image":{"@id":"https:\/\/eeldev.com\/#\/schema\/logo\/image\/"}}]}},"comment_count":0,"_links":{"self":[{"href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/docs\/5717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/comments?post=5717"}],"version-history":[{"count":19,"href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/docs\/5717\/revisions"}],"predecessor-version":[{"id":6891,"href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/docs\/5717\/revisions\/6891"}],"up":[{"embeddable":true,"href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/docs\/5701"}],"next":[{"title":"Bonus Examples","link":"https:\/\/eeldev.com\/index.php\/docs\/foliage-plugin\/bonus-examples\/","href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/docs\/6653"}],"wp:attachment":[{"href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/media?parent=5717"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/eeldev.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=5717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}