{"id":20,"date":"2022-05-13T00:57:53","date_gmt":"2022-05-13T00:57:53","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/nichojos\/?p=20"},"modified":"2022-05-13T00:57:53","modified_gmt":"2022-05-13T00:57:53","slug":"passcode-accepted","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/nichojos\/2022\/05\/13\/passcode-accepted\/","title":{"rendered":"Passcode Accepted"},"content":{"rendered":"\n<p>As an idea for something our escape room game I wanted to utilize a 3D model for a keypad. I wanted to be able to allow the user to click buttons numbered 0-9 as well as confirm and clear buttons. Unfortunately the searches that I did for free 3D models on the internet didn&#8217;t really pan out. <\/p>\n\n\n\n<p>Since I couldn&#8217;t find one, I just decided to make one for myself. It&#8217;s basically just a rectangular prism created in Unity that has a bunch of colored rectangles with text on them to represent buttons. At the top is another small section that works as a window showing what the user has already typed in. Throw a collider on each of the buttons and bam, you&#8217;ve got a keypad. It was a little troublesome to get up and running. It seemed that the text didn&#8217;t always want to show up, so I had to do some digging into how to update the canvas elements in a way to make sure that wouldn&#8217;t happen. After a few (slightly frustrating at times) hours, I had a keypad model that I was pretty proud of. Then I got to do the fun part of actually getting it to be functional. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/media.discordapp.net\/attachments\/959622819317170228\/974083099333906512\/unknown.png?width=531&amp;height=582\" alt=\"Image\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>As an idea for something our escape room game I wanted to utilize a 3D model for a keypad. I wanted to be able to allow the user to click buttons numbered 0-9 as well as confirm and clear buttons. Unfortunately the searches that I did for free 3D models on the internet didn&#8217;t really [&hellip;]<\/p>\n","protected":false},"author":12327,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/users\/12327"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/posts\/20\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}