Questions tagged [ui-design]

Designing a clear method of communication between the game and the user, whether hardware or software.

Filter by
Sorted by
Tagged with
0 votes
1 answer
50 views

Custom GUI with mouse pointer events handling

Recently I heard about possible algorithms to determine if the mouse cursor is on a GUI element such as a button: Determine the element's coordinates and size to check whether the cursor is on the ...
Fangamesgamer's user avatar
1 vote
0 answers
31 views

Differentiate Generic Tromino or Tetramino Match vs Specific Shape (Square, Line, L, ect..) in Match-3

This is primarily a user interface question related to match-3 games and visualizing a goal for the player using clear imagery. I'm interested in having a match-3 game where if you get certain matches ...
G. Putnam's user avatar
  • 111
2 votes
3 answers
482 views

Is there some psychological reason for why most game's UI is always the same colors?

Shooter games : Either Blue/teal/azure or other shades of blue and transparent or gray and transparent MMO games : Either blue and transparent or shades of Brown+Gold or a very dark red, so dark it's ...
Cei's user avatar
  • 873
0 votes
2 answers
259 views

How can I visualize the players health without creating too much UI clutter?

Many games with health systems will always display the amount of health in a head-up display. A good example is Hollow Knight, which has a detailed head-up display in the upper left corner: Some ...
kanamekun's user avatar
  • 369
13 votes
2 answers
5k views

What is the canonical name of the interaction symbol over NPCs heads?

More often than not, 2D and 3D games markup interactive NPCs (and objects) with the exclamation mark symbol. Typically yellow. But of course, sometimes it's an "i" or a small cloud, or other ...
Kromster's user avatar
  • 10.6k
3 votes
1 answer
2k views

How to get equivalent of "padding" on a button?

I'm using Godot 4. I want to increase the distance between the Button's Text (and possibly icon, later on), and it's outer edges, while keeping the "Colors" options such as "Font Hover ...
Jeroen's user avatar
  • 545
1 vote
1 answer
2k views

Drag and drop differences between Godot 3 and 4?

I'd been following Godot tutorials to add Drag & Drop functionality to Control nodes. They've presumably been created for Godot 3.x, but my project is 4.0. And ...
Jeroen's user avatar
  • 545
2 votes
1 answer
1k views

What's the difference between VBoxContainer and VFlowContainer?

I'm trying to build some UI for my game made in Godot 4.0. I want to make a "Toolbox" scene and need to decide what containers to use. I come from web development, where I'd use a ...
Jeroen's user avatar
  • 545
1 vote
2 answers
232 views

Design reasons against directly cancelling draft building

I am developing an RTS right now and this topic came up in discussion about the UI design and patterns in Starcraft 2: When you issue a building command in any race, it will create a "draft" ...
Bartek Banachewicz's user avatar
0 votes
0 answers
291 views

How to shoot raycast, and display image on canvas

I have been trying to work on raycast, where if a raycast hits an object then an image will be displayed on the canvas, like on COD Warzone if I go to an elevator shaft, and look at the wire to go up, ...
Artificial Engineer's user avatar
0 votes
1 answer
416 views

Reference as local variable in Unity c#

In the script below, "btn" is a local variable in OnEnable() method. It's said that local variable is deallocated (lost) when leaving the countaining method. Why this one (btn) is not ? Nb: ...
Achie1's user avatar
  • 169
1 vote
0 answers
172 views

How to tell which letter or vertex of a letter is at a certain screen position with a Unity UI Toolkit Label or TextElement?

I am using the Unity UI Toolkit and I would like to create my own TextField class (ie. input field, similar to the one I'm typing in now to write this message) with better functions using the Label ...
mike's user avatar
  • 481
0 votes
2 answers
161 views

Presenting difficulty settings without words?

I am trying to make a game without any text. I'm using icons in place of them to describe various aspects of the game (health, armor, stats) without using English language. I am wondering if anyone ...
Mike's user avatar
  • 3
2 votes
1 answer
865 views

What is the efficient way to sync TextureProgress with a Timer not in the UI?

I want to use a TextureProgress which reflects the state of a Timer. I have tried to emit signals: FROM: the Node2D._process() ...
pietrodito's user avatar
0 votes
1 answer
45 views

How to create a re-usable layout of text fields that can be bound to in world space?

Current tools: Unity 2020.3.2f1 (Win10) UI Builder preview package My end-goal is to do the following: At varying intervals, change values for many data objects in the background, such as prices, ...
Dpeif's user avatar
  • 101
-1 votes
1 answer
37 views

How can I create a musical sheet using sprites?(Ocarina of time )

I am looking to make a musical sheet similar to the image below: I want to: use sprites prefabs have each sprite correspond to a different line Move down notes are more are being played have tail ...
Hakeem Thomas's user avatar
0 votes
1 answer
56 views

NullReferenceException in reticle color change script while cycling through children

I could really use another set of eyes on this. I am running into this error: NullReferenceException: Object reference not set to an instance of an object I can't figure out. In the script below. I've ...
benbastien's user avatar
1 vote
2 answers
703 views

Curved 3D health bar

Hello I would like to make a curved healthbar (like if it is drawn on a cylinder). See the spatial UI element left to the shoulder of the character on this photo for what I mean. There is a main ...
raffa50's user avatar
  • 11
1 vote
1 answer
2k views

Difference between methods - onClick.AddListener and On Click under UI button inspector?

Within my Unity Project in my code, (see below), I have a button called Check which executes when CheckPress() function is called. I read two approaches by which this can be done. Appraoch 1: Using <...
Tanmayee Pathre's user avatar
0 votes
1 answer
184 views

Looking for the name of the tap handle with four 'spokes'

I am looking for the name of this sort of tap handle. This is a screenshot of it in the game Monument Valley. It has four spokes and can be rotated, behaving as one would expect of a similar design on ...
icelight's user avatar
1 vote
0 answers
251 views

Unable to wire UI Text object to C# Script

I have created UI text object And then created Text field in behavior class: ...
Dims's user avatar
  • 161
0 votes
1 answer
4k views

Can I add extra widgets to a child widget in UMG-UE4?

I have a widget base class and I would like to reuse (logic and wigdets as well) it. I created an empty widget and set the parent class to the base class I would like to inherit from in the class ...
formatc2013's user avatar
1 vote
1 answer
1k views

How can I render a font in C with OpenGL? [closed]

What I tried: I was testing some things in order to render text with stb_truetype.h and OpenGL in C. I took as a reference the example that appears here. Basically, this example, loads a .ttf file and ...
Álvaro Rodrigo's user avatar
1 vote
2 answers
437 views

Unity: How to work with forms

Today I learned some cool tricks about sizing containers and its children, I mainly using this, because I need to build some forms. But now... It is some preffered way how to handle forms? Or some ...
Zechy's user avatar
  • 67
0 votes
1 answer
452 views

Some UI button script not working in apk build!

There are a lot of posts regarding this problem in various website and even in this one but no one has given a feasible solution to this problem. I have a button that has a custom sprite. I also have ...
Sabin Pyakurel's user avatar
2 votes
1 answer
7k views

change widget's size through blueprints

I want to change the size X of my 'Horizontal Box' widget's through blueprints but cannot figure out how to do that... the properties that I want to be able to control from blueprints are marked red ...
Serhii's user avatar
  • 163
-1 votes
1 answer
40 views

Adjusted the canvas scaler in 1 level and now the camera in every scene is changed

I was attempting to add UI overlay to my game in 1 scene (to test run it) and wanted to scale it correctly so i went to Canvas scaler and changed it to Scale with Screen size, and then suddenly my ...
ConnnK's user avatar
  • 23
0 votes
2 answers
161 views

What single word could be used to describe city adventures?

I am developing an urban racing simulator in a very "underground" stylized setting. It's name is The Underground King and you have the ability to either: A) Race in a 2d side view. B) Do something in ...
Discipol's user avatar
  • 168
3 votes
2 answers
2k views

What would be the best way to create a cone representing the field of view of an entity in Godot Engine?

I would like to create a game in which PC and NPCs would have a field of view, shown as a cone in the front of the entity (see picture for an example). As it would be the first game I develop using ...
darckcrystale's user avatar
0 votes
1 answer
3k views

How can I economically check if a UI DropDown is open or closed?

I've recently come across a problem with the UI DropDown component. I would like to resize other UI components depending on whether the dropdown is opened or closed. Unfortunately, the dropdown ...
Rhov's user avatar
  • 1
1 vote
4 answers
1k views

how to make ascii ui like in dwarf fortress

Only one text field, and inside it - different sections, menus, and popups, all in ascii. How to make that? I mean something like this: ...
lxknvlk's user avatar
  • 236
0 votes
2 answers
2k views

In Unity, how do I make text/annotations appear when I mouse over GameObjects in playmode?

How do I make text appear when I mouse over GameObjects in-game? What is the Unity jargon for this? I'm assuming it's 'annotations'.
Tom Titanium Lento's user avatar
0 votes
0 answers
94 views

Is my UI good practice?

I've made a basic UI with the following interface in Unity: I have a few different states that I want to switch between by pressing buttons - the "in-game" the "menu" and "submenus". There's buttons ...
John P's user avatar
  • 173
0 votes
1 answer
253 views

Unity "Text Mesh Pro UGUI" component rewrites my text! Make it stop?

I'm having this terribly annoying problem where my text is being overwritten by Unity. This Happens regardless of whether I am using tags or not. Here is what I want to appear (more or less, I don't ...
hatinacat2000's user avatar
1 vote
0 answers
261 views

Unity WebGL Responsive content

I was trying to develop a simple drag and drop items for Web. What I was trying to do is to make the UI elements from web view to mobile view when the aspect ratio is changes. I need this web view ...
Sakuna Madushanka's user avatar
0 votes
1 answer
51 views

How do I make an image appear based on the current state I'm in?

I am following a tutorial called Complete C# Unity Developer 2D: Learn to Code Making Games. In one section we create a text-based game, where we display a canvas with some UI elements to the user. ...
Starnes Student's user avatar
0 votes
1 answer
388 views

Can a Unity button detect a tap AND send that tap through to objects below it?

I'm trying to make a "highlight frame," like a flashing box around a button for use in the game's tutorial. When the frame is tapped, I'd like it to register the tap (so the frame can be dismissed) ...
Nerrolken's user avatar
  • 174
2 votes
1 answer
1k views

Layout problem when implementing chat UI in Unity

I want to implement UI layout in Unity: And here's what I've already done in Unity using an scroll view and putting a Vertical Layout Group and a ...
Shahriyar's user avatar
  • 123
0 votes
0 answers
45 views

How can I deactivate and activate a button?

I have a code that keeps a gameObject between scenes, the theme is that this gameObjecte has as a child a button, which I can change the linerenderer color, besides changing the image of the button ...
Nicolas Flores Muñoz's user avatar
5 votes
1 answer
15k views

Running into issues with Unity Vertical Layout Group

I feel sure that I'm missing something obvious, but I've been stuck with this over the past few days. I want to make a relatively simple UI component for a character creation screen that looks ...
JLC's user avatar
  • 53
1 vote
1 answer
180 views

Handling different aspect ratios on a 2D dodging game

I've been making a game where the player is on the ground and has to dodge objects falling to the ground. Since I'm using libGDX (But the question still applies to any other language/framework), The ...
Sarah's user avatar
  • 59
4 votes
2 answers
160 views

Game Art: Martial Art Move Symbols

I am still in the conceptualisation and early prototyping phase of a game that revolves around RPG/Bullet-time hybrid game where players compete in vs. style executing attack/defence moves per turn. ...
3m3sd1's user avatar
  • 49
0 votes
0 answers
1k views

How to zoom image on Unity UI to particular point where mouse cursor is located?

I have some RectTransform on Unity UI. I have already implemented some Zoom functionality but now I need it to zoom to the area where the mouse cursor is located. Currently, it zooms to the anchor ...
Random generalist's user avatar
0 votes
2 answers
151 views

Diegetic UI in a game set in the past

Recently I've been putting together an in-game UI for a passion project I'm working on, but I absolutely hate the UI meta at the moment. I love Morrowind's UI, in that it is central and easy to access....
Cube ok's user avatar
0 votes
1 answer
883 views

How to change a background from a list of images on button click?

I'm trying to create a button within the settings menu that allows you to change the image of a GameObject per click. So, let's say there are only 2 different images available to choose from and it ...
bakashinji's user avatar
1 vote
2 answers
2k views

Understanding Unity-UI Layout Element - Mininum and Preferred Size

I have been working with Unity for some time, and I am trying to get a better understand of the UI system. I am a mobile developer and am redesigning the UI but I am unable to achieve what I want. My ...
D4rWiNS's user avatar
  • 293
3 votes
1 answer
80 views

Isolate UI elements from 3D scene

this might seem like a silly question but I'm raycasting on specific objects (Targets) in a scene and zooming in on them but i also have a few UI elements (buttons, toggles...) on the side of the ...
Safa's user avatar
  • 102
0 votes
1 answer
57 views

unity UI limitation for tutorial purpose

i want to add a tutorial part to my game that i make by unity.i have some panels that for tutorial purpose i want to limit user to just click a button.most of games make a dark panel over all places ...
virtouso's user avatar
  • 2,598
1 vote
1 answer
520 views

Reducing texture bindings in LibGDX when drawing text

I'm making custom menus and buttons (I don't want to use scene2D) and I have everything in atlases, but when I draw a button, if it has text, the texture binding is always x2 because of the switching ...
Jh62's user avatar
  • 165
-1 votes
2 answers
14k views

How do I display a variable in a UI Text component?

How can I display a variable (say an integer variable) in Unity's UI text? The variable may be a public variable from another script. Can anyone please help me do it (step by step)?
a.m.r's user avatar
  • 19