Hot answers tagged

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 ...
DMGregory's user avatar
  • 130k
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, ...
Bram's user avatar
  • 3,709
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 ...
Theraot's user avatar
  • 24.5k
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 ...
DMGregory's user avatar
  • 130k
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 ...
gjh33's user avatar
  • 671
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': ...
Exerion's user avatar
  • 665
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 ...
Bálint's user avatar
  • 14.8k
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 ...
dev9999's user avatar
  • 132
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: ...
MAnd's user avatar
  • 4,907
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 ...
Pikalek's user avatar
  • 10.9k
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);
Usama Latif's user avatar
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 ...
Damon's user avatar
  • 1,374
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 &...
Philipp's user avatar
  • 118k
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. ...
Uri Popov's user avatar
  • 3,017
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 ...
FloFu's user avatar
  • 372
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 <...
Victor T.'s user avatar
  • 1,371
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 ...
Luc's user avatar
  • 174
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 ...
Hellium's user avatar
  • 2,959
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 ...
Umair M's user avatar
  • 236
5 votes

Unity Canvas blocking objects in Editor

Layers (top-right of editor) > UI > Lock Layer for Picking (the little padlock) This will ...
maltalef's user avatar
  • 171
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" ...
Philipp's user avatar
  • 118k
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". ...
Gnemlock's user avatar
  • 5,243
5 votes
Accepted

How can I efficiently make a solid Texture2D?

Instead of texture.SetPixel, use texture.SetPixels ...
Philipp's user avatar
  • 118k
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 ...
DMGregory's user avatar
  • 130k
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, ...
Peter's user avatar
  • 9,955
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) ...
DMGregory's user avatar
  • 130k
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 ...
troien's user avatar
  • 906

Only top scored, non community-wiki answers of a minimum length are eligible