Coroutines in Unity
Objective: Change object’s color randomly every every two seconds. A coroutine will allow us to execute a process while other processes are being run. Coroutines are also useful when we want to delay a process. In our example, we’ll do both: Change color while the shapes are spinning, waiting 2…
Scriptable Objects in Unity
Objective: Use scriptable objects to fill-out a game object template. We’ve been tasked with creating an interactive for visitors to a zoo. When the user clicks on an area of the map, we reveal a card with animals and facts that apply to that area. Imagine if we had 50…
How to Save a Binary File to AWS
Saving a binary file to Amazon Web Services for later retrieval (Part 2) — Continuing from our previous article (https://lordkakabel.medium.com/saving-a-file-to-aws-26adf62e79ef), we’ll now load the file we saved to Amazon Web Services (AWS). We’ll do this by calling our GetObjectList method. This method takes-in the user-inputted case number and an Action that will trigger (if supplied). We’ll take the user’s case number and validate it…
Saving an Object in Unity
Objective: Save a object to the user’s system for later use. The object we’d like to save is a case file. It is made up of a few strings and a photo converted into an array of bytes. (See https://medium.com/nerd-for-tech/encoding-decoding-a-picture-in-unity-82af70b36853 to learn how to convert a photo to bytes.)
Integrating Google Maps API with Unity
Objective: Get a picture of a map of the user’s location. To display a map, we first have to get the user’s location from their device. We’ll need to use an IEnumerator method to do so; I’ll use the Start method in this case. First we’ll make sure the user…
Encoding/Decoding a Picture in Unity
Objective: Break a picture into an array of bytes and reassemble it. In yesterday’s article (https://lordkakabel.medium.com/taking-a-photo-in-unity-e6e3f5328da6), we allowed the user to take a picture with their device and we stored the path to the photo within the device. …
UI Button Navigation without Code
Objective: Activate and deactivate UI elements without code. Our Button components have an On Click () property. We can use this property to enable and disable other objects during runtime. We can simply click the + icon to add as many fields as we need.
Objective: Activate and deactivate UI elements without code.
Our Button components have an On Click () property. We can use this property to enable and disable other objects during runtime.
We can simply click the + icon to add as many fields as we need.