{"id":153,"date":"2025-09-24T19:02:01","date_gmt":"2025-09-24T19:02:01","guid":{"rendered":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/?p=153"},"modified":"2025-09-24T19:54:02","modified_gmt":"2025-09-24T19:54:02","slug":"how-to-make-win-objects","status":"publish","type":"post","link":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/unity\/how-to-make-win-objects\/","title":{"rendered":"How To Make Win Objects"},"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>Make an empty <code>GameObject<\/code> to hold your <code>Win Object<\/code>&#8216;s model.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a new empty <code>GameObject<\/code> (I&#8217;m going to name mine <code>WinObject<\/code>). <\/li>\n\n\n\n<li>Add the model you would like to use as a child object (I&#8217;m going to just be using a <code>Sphere<\/code>).<\/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-40-1024x537.png\" alt=\"\" class=\"wp-image-159\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-40-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-40-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-40-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-40-1536x806.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-40.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\"><strong>Step 2: <\/strong>Make your <code>Win Object<\/code> grabbable.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the parent <code>GameObject<\/code>, add the <code>Rigidbody<\/code> and <code>XR Grab Interactable<\/code> components\n<ul class=\"wp-block-list\">\n<li>Configure these components however you would like.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>DO NOT<\/strong> place a <code>Collider<\/code> on the parent <code>GameObject<\/code>. Place the <code>Collider(s)<\/code> on your child <code>GameObject<\/code> that contains the 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-42-1024x537.png\" alt=\"\" class=\"wp-image-161\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-42-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-42-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-42-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-42-1536x806.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-42.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--3\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3: <\/strong>Add and configure the <code>Win Object<\/code> component to which ever object contains your <code>Collider<\/code>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the object that holds your <code>Collider<\/code>. For me, this is my sphere.<\/li>\n\n\n\n<li>Add the <code>Win Object<\/code> component in the <code>Inspector Window<\/code>.<\/li>\n\n\n\n<li>Configure the values to your liking.\n<ul class=\"wp-block-list\">\n<li><code>Score Amount<\/code> lets you change the score value that the <code>Win Object<\/code> will give the player when it is placed in a <code>Win Container<\/code>.<\/li>\n\n\n\n<li><code>Destroy On Enter<\/code>: If this is enabled, then the <code>Win Object<\/code> will be deleted from the game once it enters the <code>Win Container<\/code>. This is how the jellyfish in <code>Jellyfishin'<\/code> work.<\/li>\n\n\n\n<li>If <code>Destroy On Enter<\/code> is enabled, then you <strong><em>must <\/em><\/strong>assign the <code>Parent Game Object<\/code> variable to the parent <code>GameObject<\/code> of the <code>Win Object<\/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-43-1024x537.png\" alt=\"\" class=\"wp-image-162\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-43-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-43-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-43-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-43-1536x806.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-43.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=\"537\" src=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-44-1024x537.png\" alt=\"\" class=\"wp-image-163\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-44-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-44-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-44-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-44-1536x806.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-44.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>Save your <code>Win Object<\/code> as a <code>Prefab<\/code>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Move your <code>Win Object<\/code> to the <code>--- GRABBABLES ---<\/code> folder for organization.<\/li>\n\n\n\n<li>Drag the parent <code>GameObject<\/code> of your <code>Win Object<\/code> from the <code>Hierarchy<\/code> into the <code>Project Window<\/code> in the <code>Assets\/_Prefabs<\/code> folder.<\/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-45-1024x537.png\" alt=\"\" class=\"wp-image-165\" srcset=\"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-45-1024x537.png 1024w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-45-300x157.png 300w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-45-768x403.png 768w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-45-1536x806.png 1536w, https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-content\/uploads\/2025\/09\/image-45.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>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-containers\/\" data-type=\"post\" data-id=\"155\">Set up a win container<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Make an empty GameObject to hold your Win Object&#8216;s model. Step 2: Make your Win Object grabbable. Step 3: Add and configure the Win Object component to which ever object contains your Collider. Step 4: Save your Win Object as a Prefab. Next Steps:<\/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-153","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\/153","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=153"}],"version-history":[{"count":4,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":166,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/posts\/153\/revisions\/166"}],"wp:attachment":[{"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studiox.digitalscholar.rochester.edu\/greenhouse\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}