{"id":2460,"date":"2025-11-20T19:00:55","date_gmt":"2025-11-20T19:00:55","guid":{"rendered":"https:\/\/golemitegames.com\/?post_type=docs&#038;p=2460"},"modified":"2025-11-21T21:34:52","modified_gmt":"2025-11-21T21:34:52","password":"","slug":"event-visual","status":"publish","type":"docs","link":"https:\/\/golemitegames.com\/index.php\/docs\/event-visual\/","title":{"rendered":"Event Visual"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Introduction<\/h2>\n\n\n\n<p>This component contains two simple animations by code and an easy way to start and stop a particle system. It is a very basic component, and is generally made to show easy it is to hook into the events of the main components. <\/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>Setting up is easy and just requires either the mesh visual gameobject or a particle system or both. This component should be placed onto the same gameobject as the main component itself such as a <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/resource-node\/\" title=\"Resource Node\">ResourceNode<\/a> or <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">ItemContainer<\/a>.<br><br>See the 3d sample scene setup to see how the Unity Events are linked up with the simple functions provided in this component. <\/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>Mesh Visual<\/strong><br>The gameobject that has the mesh object on. This should be a child of the main component like the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/resource-node\/\" title=\"Resource Node\">ResourceNode<\/a> or <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">ItemContainer<\/a>.<br><br><strong>Particle System Vsiaul<\/strong><br>Assign an Particle System component to Start and Stop a Particle System with the public functions.<br><br><strong>Squash Y Factor<\/strong><br>How much the SquashY function scales the Y axis of the mesh gameobject. This can be above 1 to scale up or below to scale down.<br><br><strong>Squash Duration<\/strong><br>How long does it take to perform the SquashY function.<br><br><strong>Shrink To Zero Duration<\/strong><br>How long does it take to perform the ShrinkToZero function.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Scripting<\/h2>\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\/\/\/ Plays the assigned particle system\n\/\/\/ &lt;\/summary&gt;\npublic void PlayParticleSystem()\n\n\/\/\/ &lt;summary&gt;\n\/\/\/ Stops the assigned particle system\n\/\/\/ &lt;\/summary&gt;\npublic void StopParticleSystem()\n\n\/\/\/ &lt;summary&gt;\n\/\/\/ Scales the whole Transform to 0 this component is attached too\n\/\/\/ &lt;\/summary&gt;\npublic void ShrinkToZero()\n\n\/\/\/ &lt;summary&gt;\n\/\/\/ Squash the assigned MeshVisual by the SquashFactor with the SquashDuration\n\/\/\/ &lt;\/summary&gt;\npublic void SquashY()<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This component contains two simple animations by code and an easy way to start and stop a particle system. It is a very basic component, and is generally made to show easy it is to hook into the events of the main components. Setting up Setting up is easy and just requires either the [&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-2460","docs","type-docs","status-publish","hentry","doc_category-resource-and-production"],"acf":[],"aioseo_notices":[],"year_month":"2026-04","word_count":267,"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\/2460","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=2460"}],"version-history":[{"count":6,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2460\/revisions"}],"predecessor-version":[{"id":2580,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2460\/revisions\/2580"}],"wp:attachment":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/media?parent=2460"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_category?post=2460"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=2460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}