Unity Driving Simulator Tutorial  [draft]

[[TOC]] tutorial link demo link Observations Something i really like about this format is they insist you watch the whole video first, then try it out after. Usually with these things try to be as efficient as I can, so I try to keep up and get frustrated when it doesn’t work. I often get so hung up that I might not get to the end of the video....

October 9, 2021

Fixing That Weird Positioning Problem in my Unity Game

I’ve been struggling with this one for months. It has made me stop working on this game altogether (as have other things). First off, the problem doesn’t make much sense. I’m using equivalent logic to handle the positioning of some elements in one view as I am in another. The game is the latest iteration of my resource management sim idea. Villagers get assigned to work stations that produce resources the villagers need to survive....

June 5, 2020

Unity - Attaching Gifs to Surfaces  [draft]

One of my game ideas is a walking sim. I’ve been considering how best to design this game, and one of the ideas was that exploring and interacting with the environment would trigger animated scenes that depict a child’s challenging experiences while growing up. These scenes would be attached to objects, like walls or terrain. I’m going to explore a few ideas on how to make that work. Hey, Google, how do I “unity attach a gif to an object”....

December 9, 2019

Unity - Streaming Assets with WebGL  [draft]

My StreamingAssets load function is failing to find the file in a WebGL build. 1 2 3 4 87fe1115-9410-4333-86b8-4f13bd96c86d:8 DirectoryNotFoundException: Could not find a part of the path '/http:/localhost:58316/StreamingAssets/data/events'. at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x00000] in <00000000000000000000000000000000>:0 (Filename: currently not available on il2cpp Line: -1) The load function: 1 2 3 4 5 6 7 8 9 10 11 12 13 private static string LoadStreamingAsset(string filePath) { // string filePath = System....

December 5, 2019

Some Unity Flailings

I don’t know a bunch of stuff, let’s find out what, and remedy the situation. I opened a new 3D project and stared at the screen. What’s the first step? We need a character, and something for it to run on. Googled: “Add character 3D world”, clicked first link. http://www.strandedsoft.com/creating-a-3d-world-and-a-playable-character-in-unity3d/ Neat! Terrain tool I’ve never used this. Creating a new terrain: GameObject menu -> 3D Object -> Terrain Adjusting terrain contour Click the icon that looks like a paint brush in the terrain Inspector....

December 4, 2019

Some Unity Tricks  [draft]

Saving selections The current editor element selection can be stored in a save state by using the combination ctrl+alt+1-0 and retrieved with the combination ctrl+shift+1-0. A use case could be: while editing a gameobject in scene 1, the user would like to compare the contents to a similar gameobject in scene 2. While the first object is selected, ctrl+alt+0 would store the state. Then the user would load the similar game object, and save that state with ctrl+alt+1....

November 18, 2019