80
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
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 ...
13
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 ...
12
votes
Accepted
How to detect mouse over for UI image in Unity 5?
You can implement IPointerEnter and IPointerExit interfaces and keep boolean for 'over state':
...
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 to dynamically create an UI text Object in Unity 5?
I think what you are looking for is something like following:
...
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
Changing color of UI Text in Unity into custom values
You can do this with the code below:
title.color = new Color(254.0f/255.0f, 152.0f/255.0f, 203.0f/255.0f);
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
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
UNITY : I want to make my UI text fade in after 5 seconds
Here is a rather simple extension class that you can use.
...
7
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 ...
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 <...
6
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 ...
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
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
Unity Canvas blocking objects in Editor
Layers (top-right of editor) > UI > Lock Layer for Picking (the little padlock)
This will ...
5
votes
Accepted
Why is my canvas being rendered underneath everything?
Set the render mode of your camera to "Screen Space - Overlay". That way it will always be on-top of the actual game scene.
When you set the mode to "Screen Space - Camera", the "Plane Distance" ...
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
Accepted
How can I efficiently make a solid Texture2D?
Instead of texture.SetPixel, use texture.SetPixels
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gui × 716unity × 427
c# × 148
java × 44
ui-design × 43
c++ × 32
libgdx × 30
2d × 29
text × 29
opengl × 28
unity-ui × 21
android × 19
input × 16
animation × 13
3d × 12
menu × 12
xna × 11
game-design × 11
architecture × 11
rendering × 11
interface × 11
events × 10
mouse × 10
ngui × 10
shaders × 9