79
votes
Accepted
What is the difference between a HUD and a GUI in a game?
I'd argue that HUDs are graphical user interfaces: they're ways to present information back to the user graphically.
In contrast to what some other answers say, the term GUI doesn't require that ...
26
votes
What is the difference between a HUD and a GUI in a game?
Interactivity.
A HUD is not interactive: it displays information only, it cannot be clicked, dragged, closed, etc.
A GUI in a game is like any other UI: it is interactive. It has menus, buttons, ...
14
votes
Accepted
Running into issues with Unity Vertical Layout Group
Alright my dude. Welcome to the hell that is layout groups. Here's a few things you'll need to know first:
If nothing is sizing the object, the layout group will not work as you expect (in fact it ...
14
votes
What is the canonical name of the interaction symbol over NPCs heads?
Disclaimer
There is no canonical name as far as I'm aware. So, instead I will provide terms that I hope will be useful for you.
And while I cannot provide a definitive source these terms, I do not ...
13
votes
Accepted
How to make curved GUI in Unity?
Here's a strategy for making arbitrarily bent UI: we'll render our UI into a texture (in realtime, not as a baking step), and then map that texture onto whatever mesh we want.
Here's how I made this ...
12
votes
Accepted
How can I round out the corners of a quad in OpenGL?
This is not technically an answer to your question, but is a better work around in my opinion.
You can pass the dimensions of the boxes and the radius of the corners to the fragment shaders and round ...
11
votes
In OpenGL, is it a bad idea to "combine" immediate mode and retained mode for the sake of GUIs?
I personally only see it as being bad for two reasons:
It is very outdated and deprecated. And,
It is much slower than the modern ways of drawing with OpenGL.
But, if it's working out, and ...
9
votes
Accepted
How can I render an OpenGL scene into an ImGui window?
First you need to render you scene to a Frame Buffer Object (here is a good course on FBO: https://learnopengl.com/#!Advanced-OpenGL/Framebuffers)
After that you will end up with a Texture (of type ...
9
votes
What is the canonical name of the interaction symbol over NPCs heads?
The general category is context-sensitive user interface. In Scott Roger's book "Level Up" he calls them context-sensitive prompts:
an icon or symbol that appears when the player is next to ...
8
votes
zoom to cursor calculation
I couldn't figure out what Konrad's variables were supposed to mean in my game (map width? My map is infinite, so... that's the same as the screen width then maybe? It didn't work out), so I figured ...
8
votes
Accepted
In OpenGL, is it a bad idea to "combine" immediate mode and retained mode for the sake of GUIs?
It is a bad idea insofar as it is nonsensical. There is nothing to "set up" that you have not already done, except for an ortho projection matrix (which you will have to do in any case).
Portability ...
8
votes
Accepted
What's the difference between VBoxContainer and VFlowContainer?
First of all, these are Containers. So they will resize and arrange their children Controls. Adjusting to both the space ...
8
votes
Accepted
Drag and drop differences between Godot 3 and 4?
Nearly discarded my question because I found the answer myself, but perhaps just posting it will help others running into the same gotcha...
If you look at the official documentation for both versions,...
8
votes
Accepted
Is there some psychological reason for why most game's UI is always the same colors?
When picking a color palette for your game UI, there are several considerations:
Fitting with the theme of the game. If you have a medieval fantasy game, then the UI color scheme should communicate &...
7
votes
Accepted
How can I apply a Camera Shader to UI?
The default behavior for Unity's UI is to draw after the post-processing effects have been applied. This is dictated by the Render Mode setting on your scene's <...
7
votes
Accepted
How to integrate images into text lines in Unity?
The regular Text component unfortunately can't do that, at least not on a UI canvas and without some nasty hacks. But TextMeshPro can. I really recommend using TextMeshPro over the classic Text ...
7
votes
Accepted
How to get equivalent of "padding" on a button?
What you use are the define style overrides, which means you have to do it separately for Normal, Hover, Pressed, Disabled, and Focus states.
All the kinds of ...
6
votes
Accepted
How do I set the exact local position of a RectTransform?
First of all, ensure you set the parent before setting local position, then, you have two options according to the type of Rect Transform : non-stretching and stretching ones.
For a non-stretching ...
6
votes
Accepted
How can I efficiently make a solid Texture2D?
Instead of texture.SetPixel, use texture.SetPixels
...
6
votes
What is the difference between a HUD and a GUI in a game?
Is a HUD part of the GUI and just displaying information?
Yes. Head Up Display (as the name suggests) is just to display information while you are in-game. However in some scenarios HUD may be ...
5
votes
Accepted
Why would I receive a NullReferenceException when the object is clearly set, and still works?
I have ran into this problem more often than I care to remember. First and foremost, there is no NullReferenceException in the script associated with "emptyTest". ...
5
votes
how to achieve smooth 360 Degree input with joystick as opposed to 8 angles
I'm going to let you in on a secret:
float x = Input.GetAxis("JoymouseX");
float y = Input.GetAxis("JoymouseY");
Here we have input with two components, an ...
5
votes
What is the difference between a HUD and a GUI in a game?
GUI and HUD are inexact terms, meaning people will know what they mean, unless they require specifics. The specific meanings attached to the terms depend on subculture, company, the current project, ...
5
votes
Technical term for the border that appears around the screen, usually in response to low health?
At our studio (Ubisoft Toronto) we usually call it a (low) health vignette.
A vignette in photography & film refers to an effect around the edges of the frame (usually a darkening or defocus) ...
5
votes
Accepted
What does this Yellow Outline represent in Unity Text Mesh Pro?
These are 'margins'. In the inspector, you can find them under the 'extra settings' section. This is what the documentation says about them:
The Margins values can be used to add some space between ...
5
votes
Accepted
How do I keep a node centered while animating scale in Godot?
Assuming you are scaling with scale, what you need to do is set the pivot_offset to the center of the ...
4
votes
Accepted
Unity - Ignore mouse click outside of the UI
Easiest way to handle this is to make a transparent background for your UI and let it catch the raycasts (if you're using them) or the mouse clicks so that the main game doesn't gain the focus of the ...
4
votes
Accepted
Strange issue with bool comparing ToString always false - unity c#
Quick Answer: What your code actually currently does is compare references to check that they are the same, not the values of those references.
Try changing
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gui × 730unity × 429
c# × 151
java × 43
ui-design × 43
c++ × 32
2d × 30
text × 30
opengl × 29
libgdx × 29
unity-ui × 22
android × 19
input × 16
godot × 14
3d × 13
animation × 13
xna × 12
events × 12
interface × 12
menu × 12
game-design × 11
architecture × 11
rendering × 11
mouse × 11
ngui × 10