Home Creators Posts Import Register Favorites Logout

Content

Hi folks, here's another guide using Unity  to create a puzzle that can run on a computer or tablet inside an escape room, which simulates a database search/document retrieval system. This is something I've seen used in several rooms, and it's also something that was recently requested on one of the Facebook escape room groups, so I hope you find it useful!

Players enter some sort of reference number, name, case file etc. into the application (from a document they found resulting from a previous clue, say) and, if a matching file is found, a JPG/PNG file is displayed to simulate the corresponding document. This could be used for searching medical records, surveillance documents, chemical formulae, criminal files, redacted notes from meetings, etc. etc., so would fit with plenty of common escape room themes!

I've tried to make it as flexible as possible - you can add as many "documents" to the system as you like by just dragging the image file into the StreamingAssets folder where the application is installed. If players then type the filename of that document (not including the file extension), it is displayed on the screen. If they type a filename that doesn't exist, the screen simply remains blank. You can easily customise this further by repeating the steps I demonstrated to adding further UI elements for logos, a background image etc. 

I encourage you to follow along with the video, because I've tried to explain every step along the way, and if you're not familiar with Unity I really hope it will show you how the interface works. Alternatively, if you'd just like to download the project directly, I'll be putting a link up shortly. Please ask if you have any questions!

Files

Escape Room Tech Prop Tutorial : Document Retrieval System

In this video tutorial, I'll teach you how to use the Unity game engine to create a Escape Room tech prop that simulates a document retrieval system. Such a system could be applied in many escape room games, allowing players to search a database of police evidence, retrieve test results from a lab computer, or pull up details of incriminating documents from a shady corporation, for example. The documents would then provide additional information or clues to the players enabling them to solve a puzzle and proceed in the room. The "documents" retrieved by the system are simple PNG/JPG image files, which you can style in any way you want to fit the theme of your room. Documents are retrieved by their filename, and you can add as many files as you want to the streamingassets data folder of the application corresponding to the information you want players to be able to find. You can download Unity Personal edition for free, from https://unity.com/ Once built, you can easily deploy the application to a variety of target devices - an office-themed escape room might have a humble Windows XP PC, whereas a high-tech biolab might have a touchscreen tablet interface - again, you can simply choose a device that would fit within the context of your room. You can find more information about this project, and all my other Escape Room tech tutorials, at www.patreon.com/playfultech

Comments

Richard

I recently build a webapp doing this exact type of idea. I then used phonegap to turn it into a hybrid mobile app, does unity have the ability to save as an apk?

Jackie Schoonover

Grate job. I have been playing with this and liking it. Question how do I get a default image to pop up like an agency logo thanks and keep up the good work.

manwai che

Hi, I'm getting errors about assembly has reference to non-existent assembly, 'unity.ugui'... textmeshpro.editor.asm.def and dataprivacy.asm.def. when I load textmeshpro, it didn't ask me to update or import anything. am I missing anything?

mark dennis

How do you insert pictures where you placed the image and panel?

Teia Powell

Thank you for the excellent and very thorough tutorial. Just finished my first game for our at home escape party. Can't wait for our guests to enjoy. Cheers!

Nick Maxcy

I'm not sure what I did wrong but when I test the game it finds the jpg files, but when I search for one I get a question mark instead of the image file. I've double-checked my script and everything looks right. I'm not sure what else to check out. Thx for all the great videos.

Danielle Jackson

Hello! I was hoping to ask a question about what happens when a file is not found. I want it to show a specific image file saying "File Not Found." I have been unable to make this work and was wondering if you could help me?

leomail

Hello Alastair, I became Patron of yours because of all the videos I saw on Youtube. My first project is to make an escape Tram. I'm puzzling and started building a Unity scene, now I need help entering a code that doesn't exist or is wrong. In the example you have made I want in the Main file a code that points to a 404 page if you enter the wrong code. Can you help me with this?

Alastair Aitchison

Hey Danielle, LeoMail, Euan! Here's the steps required to implement a "404 Not Found" image whenever the player searches for a record that doesn't have a matching image file. 1.) First of all, you need to make a single change to the master.cs file on Line 73 from: image.sprite = null; to: image.sprite = imageNotFound; 2.) Next, you need to add the image that you want to use as your "404" page to the project. This is a slightly different way of adding the other images, because it's not going to be loaded at runtime from a directory of images - rather, it's a "sprite" that's embedded in the application itself. So, firts drag the image you want to use (i.e. the JPG/.PNG file) into the "Assets" of your project (I put mine in a folder called "Sprites", but you can put it anywhere you want). 3.) Click to select the image in the Project pane in Unity, and then from the properties "Inspector" tab on the right hand side, change the "Texture Type" to "Sprite (2D and UI)" and click "Apply". 4.) Now, click the Canvas element in the Scene hierarchy on the left hand side, and drag the 404 image which you just set as a sprite from the Project window into the "Image Not Found" slot of the Master Script. I'm hoping those instructions are clear enough to follow, but please let me know if you'd like me to create a quick video demonstrating the steps. Play and enjoy!

Joseph Broomell

Alastair, I figured out how to decorate this nicely to fit my theme, but my input field will not accept text. The enter button works though. So, what do you think I might be doing wrong before I build this out?

tropp73

Hi, can I use this project to find and play videos? Wich section I must change? Thank's