Posts

Showing posts with the label UI

Architecture AI Pathing Project: Fixing Highlight Selection Bugs

March 22, 2021 Highlight Selection Architecture AI Project Overview I was having a bug come up with our selection highlight effect where sometimes when moving around quickly, several objects could be highlighted at the same time. This is not intended, as there should ever only be a single object highlighted at once, and it should be the object the user is currently hovering over with the mouse. Bugfix Assessing Bug Case Since it happened generally with moving around quickly in most cases, it was difficult to nail down the direct cause at first. After testing a while though, it was noticeable that the bug seemed to occur more often when running over an object that was non-selectable, onto a selectable object. Further testing showed this was the case when directly moving from a non-selectable to a selectable object right afterward. This helped isolate where the problem may be. Solution It turns out in my highlight selection SelectionManager class, I was only unhighl...

Architecture AI Pathing Project: Cleaning Build UI

Image
March 15, 2021 Working with UI Architecture AI Project Working with UI Since UI looked organized into 4 major groups vertically, I used a Vertical Layout Group for the overall control. I then filled this with 4 empty UI objects, one for each major UI group. Vertical Layout Group Anchor Preset: stretch/left (anchors to the left, but expands for full vertical screen space) Pivot: (0, 0.5) (Moves pivot point to the far left, so width controls how much it expands out from edge, and Pos X can just remain 0) Child Force Expand: Width (Helps expand everything to fit the full width) Child Force Expand: Height (May not be needed) Control Child Size: Width (May not be needed) Padding: Left, Top, Bottom (Keep everything slightly away from edge) Controlling the anchors and pivot is extremely important. After setting up the vertical layout group, a lot of the individual control is necessary for the horizontal organization. The anchors, the x position in particular, can be ...

Architecture AI Pathing Project: Rename Dropdown Elements

Image
February 16, 2021 Dropdown and Input Field UI Architecture AI Project Renaming Items in Spawn/Target Dropdown Lists To get the spawn/target object lists into the dropdowns quickly and accurately, I had them simply add their gameobject names to the dropdowns for the individual item names. These objects however tend to have very long names as they are constructed from several elements coming from the Revit system to accurately identify them. While useful, they are too wordy for identification purposes here and can actually make them harder to find and keep track of. Because of this, we wanted to investigate a way to rename the elements in the list to make them easier to identify in the future. To accomplish this I looked to add a UI Input Field where any name could be entered and this could be used to rename current items in the dropdown lists. Since there are two dropdowns (Spawn list and Target list), I added two different buttons to account for these. One button applies...

Unity UI Design - Video on Color Palettes, Layout Components, and Blur Panel

January 13, 2021 Unity UI Design Title: Making UI That Looks Good In Unity using Color Palettes, Layout Components and a Blur Panel By: Game Dev Guide Youtube - Tutorial & Information Description: Making better looking UI, specifically through Unity. Overview As I close in on another end point for the Architecture AI project I am working on, I am tweaking the UI elements again. This motivated me to look a bit more into UI design again, and this video looks like a nice quick pickup to provide some significant improvements to my usual UI options. This will also cover making it look a bit nicer, which is a good compliment since I have generally focused on just getting UI elements to work well previously.

Architecture AI Prototype Historical Path Visualization and UI Updates

Image
July 1, 2020 Architecture AI Project Added Path Visualization and UI Updates Introduction To top off the prototype, we added a quick visualization tool to show any paths that agents have taken within the current game session. This was necessary to make it easier to compare the paths of various combinations of agents and environments even. Along with this, some elements of modifying the system that were only accessible within the Unity Inspector have been moved to the in game UI. This makes it much more manageable to alter the agents and their pathing for Unity users and non-users alike. The following quick reference image shows an example of this new path visualization tool (the red line going through the diagonal of the area). Reference for New Path Visualization Tool (the Red Line is the Path) Vimeo - My Demo of the Past Path Visualization Tool (with New UI Elements) Past Path Visualization Feature Visualization The path data was already being recorded in an ...

Building Unity UI that scales for a real game - Prefabs/Scenes? by Jason Weimann

January 24, 2020 Unity UI Scaling and Scenes Building Unity UI that scales for a real game - Prefabs/Scenes? Youtube - Link By: Jason Weimann Notes UI is a big part of a lot of games, so it is something that is always good to learn more about. This also deals with using UI that works across multiple scenes, so this could possibly be another route to take when dealing with the new scene management techniques I have looked into.

Tower Defense Project - Fixing UI Text

September 2, 2019 Tower Defense Tutorial Project UI Text GOAL: Fix game over UI text and look into round text references to see why they update strangely. NOTES: For the GameOver screen producing weird text results, my first thought was to the check the inspector references. I know tying the stats into text UI elements uses inspector references, so making sure those were correct was the first check. Sure enough, it looked like the wrong text was dragged into the GameOver UI inspector field. I must have grabbed the wrong one initially, as the generic text was dragged in there as opposed to the text that should be holding the round number. As for the issue with the round text timing being off, I figured that had to do with the way the coroutine to animate the text was setup. It should count up from 0 to the final round number the player ended on (whether they won or lost), but it was starting on that final round number, THEN going to 0 and counting back up again. This ju...

Pokemon Unity Tutorial - BattleManager [Pt.8]

August 23, 2019 Unity Pokemon Tutorial BattleManager Youtube - Lets Make... Pokemon in Unity! - Episode 8 BattleManager Code By: BrainStorm Games This tutorial focuses on the scripting the actual functionality of all the UI in the battle scenes. This includes giving all of the different text selections their various functionalities when the player selects them during a battle. The intial setup for the BattleManager script was a huge pain in this tutorial. It started with creating a bunch of public GameObjects and Text objects to provide input fields in the inspector. There were almost 20 different elements created at once here. Then, we had to plug in all of the corresponding UI Text and Panel objects from the last tutorial into these fields. Many of these objects were never renamed at all (or named poorly as the script name does not match the object name in any manner). This will be workable since this is not the main reason I am doing these tutorials. After setting ...

Pokemon Unity Tutorial - Battle GUI [Pt.7]

August 21, 2019 Unity Pokemon Tutorial Battle GUI Youtube - Lets Make... Pokemon in Unity! - Episode 7 Battling GUI By: BrainStorm Games This tutorial focuses on setting up the GUI within a battle encounter. This includes creating the panels necessary for holding all of the information about the battle and the player's input options. The UI panel holding the moves was given a Grid Layout Group component. This helps when you want to layout children UI elements in a grid pattern. This component holds information such as padding (spacing added around borders of current UI elements) and cell size (how much space to give each individual grid component). Working with UI elements in Unity is always weird and unpredictable for me, and this time was no different. When making the health bar UI canvases, I created the background (health container) and foreground (current health) health elements for the player's pokemon first without any issue. However, when I duplicated ...