{"id":155,"date":"2025-09-24T19:06:44","date_gmt":"2025-09-24T19:06:44","guid":{"rendered":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/?p=155"},"modified":"2025-09-24T21:45:52","modified_gmt":"2025-09-24T21:45:52","slug":"how-to-make-win-containers","status":"publish","type":"post","link":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/unity\/how-to-make-win-containers\/","title":{"rendered":"How To Make Win Containers"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide is-style-wide--1\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> Check the pre-made win containers to see if there are any that will match your experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this project, we have given you pre-made win containers that you can use. These are located in <code>Assets\/Pre-College\/Prefabs\/Win Containers<\/code> in the <code>Project Window<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you like one of the already existing win containers, then there&#8217;s no need to continue this tutorial! Just drag the prefab you like into your scene.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"537\" src=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-46-1024x537.png\" alt=\"\" class=\"wp-image-168\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-46-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-46-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-46-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-46-1536x806.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-46.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide is-style-wide--2\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: If you want to make your own <code>Win Container<\/code><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create an empty <code>GameObject<\/code> in your scene (I will name mine <code>Win Container<\/code>).\n<ul class=\"wp-block-list\">\n<li>Depending on what kind of <code>Win Container<\/code> you are trying to make, you may or may not want to add a <code>Rigidbody<\/code> to the parent <code>GameObject<\/code> you just made. <\/li>\n\n\n\n<li>For a non-moving stationary box like in the following example, it is not required.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Add your model to the <code>GameObject<\/code> you just made as a child <code>GameObject<\/code> (I&#8217;m going to use the crate model).<\/li>\n<\/ol>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>(Optional, but recommended) Add the <code>Select Base<\/code> component to your parent <code>GameObject<\/code>.<\/summary>\n<p class=\"wp-block-paragraph\">This is a component that simply prioritizes selecting the object it is attached to when clicking on an object in the <code>Scene View<\/code>. With this component attached to your parent <code>GameObject<\/code>, when you click on its child model, it will select the parent <code>GameObject<\/code> rather than the model&#8217;s <code>GameObject<\/code>.<\/p>\n<\/details>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"537\" src=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-47-1024x537.png\" alt=\"\" class=\"wp-image-169\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-47-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-47-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-47-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-47-1536x805.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-47.png 1921w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide is-style-wide--3\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3: Ensure that you have collider(s)for your <code>Win Container<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reminder: For more complex models, you can have multiple colliders on one <code>GameObject<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"537\" src=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-48-1024x537.png\" alt=\"\" class=\"wp-image-170\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-48-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-48-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-48-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-48-1536x806.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-48.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide is-style-wide--4\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4:<\/strong> Make a trigger cube. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This <code>GameObject<\/code> will detect if a <code>Win Object<\/code> enters it. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Make a new empty <code>GameObject<\/code> and give it a <code>Box Collider<\/code>.<\/li>\n\n\n\n<li>On the <code>Box Collider<\/code> component, enable the <code>Is Trigger<\/code> variable. \n<ul class=\"wp-block-list\">\n<li>This disables normal physical collisions for this collider and has it act as just a sensor for coming into contact with other colliders.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Adjust the <code>Box Collider<\/code> until it covers the empty space of the win container.<\/li>\n\n\n\n<li>Add the <code>Win Container<\/code> component to the <code>GameObject<\/code>.<\/li>\n\n\n\n<li>Your <code>Win Container<\/code> should now be fully functional!\n<ul class=\"wp-block-list\">\n<li>Don&#8217;t forget to make it a <code>Prefab<\/code> by dragging it from the <code>Hierarchy Window<\/code> into the <code>Assets\/_Prefabs<\/code> folder in the <code>Project Window<\/code>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"537\" src=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-50-1024x537.png\" alt=\"\" class=\"wp-image-173\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-50-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-50-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-50-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-50-1536x806.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-50.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide is-style-wide--5\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5 (Optional): <\/strong>Add sparks that fly out whenever a <code>Win Object<\/code> is placed in the <code>Win Container<\/code>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add the <code>SparksParticles<\/code> prefab from <code>Assets\/Pre-College\/VFX\/Sparks<\/code> to your <code>Win Container<\/code>&#8216;s parent <code>GameObject<\/code>.<\/li>\n\n\n\n<li>Select the <code>SparksParticles<\/code> in the <code>Hierarchy Window<\/code>, and reset the <code>Transform<\/code>&#8216;s position values to <code>0<\/code>,<code>0<\/code>,<code>0<\/code> in the <code>Inspector Window.<\/code><\/li>\n\n\n\n<li>Test the <code>Particle System<\/code> by clicking the <code>Play<\/code> button in the <code>Scene View<\/code>. <\/li>\n\n\n\n<li>Adjust the <code>Position<\/code>, <code>Rotation<\/code> and <code>Scale<\/code> of the <code>SparksParticles<\/code> object.<\/li>\n\n\n\n<li>Assign the <code>SparksParticles<\/code> object to the <code>Sparks<\/code> variable in the <code>Win Container<\/code> component in your <code>Trigger Cube<\/code> object.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"537\" src=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-51-1024x537.png\" alt=\"\" class=\"wp-image-174\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-51-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-51-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-51-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-51-1536x806.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-51.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-52-1024x536.png\" alt=\"\" class=\"wp-image-175\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-52-1024x536.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-52-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-52-768x402.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-52-1536x804.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-52.png 1924w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide is-style-wide--6\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Next Steps:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/unity\/how-to-make-win-objects\/\" data-type=\"post\" data-id=\"153\">Make a win object<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/unity\/how-to-import-your-npc-from-blender-into-unity\/\" data-type=\"post\" data-id=\"45\">Set up your NPC<\/a><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Check the pre-made win containers to see if there are any that will match your experience. In this project, we have given you pre-made win containers that you can use. These are located in Assets\/Pre-College\/Prefabs\/Win Containers in the Project Window. If you like one of the already existing win containers, then there&#8217;s no [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-unity","category-unity-tutorials"],"_links":{"self":[{"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":5,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/posts\/155\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}