Graphical User Interface. A term used to describe the tools available to the player to interact with the game.

learn more… | top users | synonyms (1)

0
votes
2answers
38 views

How can I seperate gameview from UI most efficiently in Unity?

Let me provide an image to illustrate what I mean. It is from a game called Runescape.
0
votes
2answers
51 views

Layered UI architecture

I'm working on GUI system and I want to implement tooltips and dialogs. Base components hierarchy looks like this: So every panel extend ComponentContainer class, and other controls like button ...
1
vote
0answers
11 views

GuiSan | SDL2 - Setting colour key of render target results in having an black screen

At the moment i am experimenting with guisan within my little project. Everything is done sofar with SDL_Texture except Guisan which utilize SDL_Surfaces instead SDL_Texture for rendering itself. Per ...
1
vote
1answer
48 views

How to create UI with multiple panels for multiple resolutions

I am trying to create scene that has multiple panels, but only one is visible. When user clicks on appropriate button a transition is happening: camera moves to the right revealing panel on the right ...
2
votes
1answer
57 views

Unreal engine 4 - UI blury

My unreal engine UI does not look sharp and is blurred on my 1080p monitor. Subsequently, the viewport is slightly blurry and edges are jagged . I have changed the setting of the viewport to cinematic ...
0
votes
2answers
46 views

Hold button down by mouse?

When I hold down a button by mouse for 5 seconds, print a message. How to do this ? I wrote this script but is not working. I don't know if there other methods. Public float clock; Public Button out; ...
-1
votes
1answer
84 views

Any Reason for a “Canvas”-Based Approach for Isometric Game GUI?

When designing game engine GUI systems, I know a lot of game engines (notably Unity, and Unreal) use a sort of "canvas" system. But, in an isometric game, where the camera is orthographic anyway, this ...
0
votes
0answers
12 views

XML defined UI loading

For the past few days I have been working on an XML defined UI system where I define my UI in XML files, parse them and use sprtiebatch(sharpdx.toolkit) to draw the UI elements. I have a texture atlas ...
0
votes
0answers
20 views

Resize Label automatically with the text content in LibGDX?

In LibGDX, I want to add some long text content to several Labels. I'm creating those labels in a loop, and the text content is different in each iteration. I want the Label to have a size that fits ...
0
votes
0answers
23 views

LibGDX How to set spacing between list items in a Scene 2D Select Box Widget?

I have created a Select Box (Scene2D widget) which holds a list of items, to be selected. My code works fine, but I would like to make a little more spacing between each list item in the dropdown list ...
0
votes
0answers
20 views

Multi-Layer RTS Action Bar

Most RTS use a 3x3 or 3x4 action bar to control the unit, build things or use abilities. Some buttons are directly triggering an action like "attack" or "retreat", some will open a new leay, e.g "...
0
votes
0answers
7 views

How can I prevent a GameObject within a ScrollView from moving?

I have a ScrollView. It has children, most of which I want to scroll, but some of which I want to remain still. Think of something along the lines of a spreadsheet where the title rows/columns don't ...
0
votes
1answer
63 views

Best way to draw a textfield in OpenGL, when performance really matters?

I'am creating my own GUI library in LWJGL (opengl for Java). I already managed in creating buttons and panels, and I've also got the hover and active states of the components implemented. This ...
0
votes
3answers
25 views

Unity - Easier way to resize group of buttons to the same size

I have a canvas with buttons, with a script attached to each button. This script creates an array for buttons and resizes every button to the same size as the longest one in that array (the button ...
0
votes
0answers
101 views

Raycasting with a selection rectangle box

I'm currently making a level editor for my game and want to implement a selection tool to make it easier to select multiple voxels at once. My question is what the most efficient way is to get all the ...
0
votes
0answers
26 views

Optimized menu system: SetActive() vs. nested Canvases vs. nested CanvasGroup

Our game is 100% based on the new UI. I want to know your opinion about best performance optimized solution to make menus and screen transitions using the new UI. Our original solution: A root ...
0
votes
1answer
41 views

How to only allow one space in an InputField?

I've been messing with this for a while now and I can't get this to work 100%. I'm using an InputField for players to enter a character name, and I want to allow a first and last name. Here's how I've ...
1
vote
1answer
50 views

UI clicks hitting game objects below

I have a canvas with a panel with set width / height inside. The canvas rendermode is set to ScreenSpace Overlay. My clicks on the panel are falling through and hitting the game objects below ...
0
votes
1answer
21 views

Preserve top right position and relative size to screen

I have the following circle laid out where I'd like it at 1920x1080: http://imgur.com/a/PmvVA at 1280x720 it takes the same amount of relative screen space. When the aspect ratio changes I want the ...
0
votes
1answer
58 views

How to match UI background size with text length in Unity?

I am making an FPS game in which when you are near an item a UI Text appears at the bottom center of the screen indicating the name of the item and the button to pick it up (let's say [E]). It works ...
0
votes
2answers
37 views

Canvas not filling up the whole screen in Unity 5

i am trying to make my canvas auto resize to any screen size. these are my canvas scalar settings: UI mode: change with screen size match height and width reference resolution: 600x800 i looked up ...
0
votes
0answers
31 views

Game Object will NOT stretch across entire content area

I'm loading prefabs into a content area using a content size fitter and vertical layout group. I've tried multiple things to get the loaded prefabs to stretch across the entire content size (including ...
4
votes
1answer
55 views

Prevent Unity click go trough Canvas

I'm currently facing this problem: If I click on a Button on my Canvas, the currently selected Unit moves towards the location under the Button. Is is there any option to solve this? I'm using the A* ...
-3
votes
1answer
28 views

Unity 2D UI Scrollview Stretch settings not staying

So I'm trying to make a Scrollviewer and inside that will be aload of boxes stacked on top of each other (the boxes have information in them - like the boxes in this screenshot here but they will ...
0
votes
0answers
6 views

Triggering an animation key manually added to the automatically generated animator controller on a button

I have a canvas parenting a panel, parenting some buttons. all the buttons have their own animators that i have automatically generated by clicking "Auto Generate Animation" in the button's Inspector ...
7
votes
1answer
324 views

What is the specific name of this UI component? [duplicate]

Is there a specific name for this kind of ui component? Sometimes it only renders a symbol (without text) so using name like TextComponent is imo not very fitting.
1
vote
1answer
47 views

Unity: Trying to add an in-scene 'press E to open' tag as UI element

In Unity 5.4.1 I'm trying to add a tag that says 'press E to open' to a door as you approach it. I've got a RayCast pointing forward from the player, detecting the door and , connected to my ...
0
votes
1answer
89 views

How to display Render Target live to HUD widget in UE4

I'm making a security camera system in Unreal Engine 4. It allows the player to 'activate' the monitor, which should display the Render Target texture or the material made from it on the HUD. However, ...
0
votes
1answer
59 views

Can't set Source image for UI image

I am new to Unity. few days back i have started learning to make games using Unity Engine & I started making a very basic car racing game. In order to add an On-screen SpeedOMeter for my car I ...
1
vote
1answer
57 views

Unity fade all UI elements which belong to one Canvas

Like the question describes I want to fade out/in all UI-Elements belonging to a parent canvas. So things I got are : A World-Canvas which contains multiple UI-Items A script which can fade one ...
0
votes
1answer
70 views

How to implement buttons in Java?

I'm new to java and I want to know how to implement buttons for my menustate. Right now all I did is I made pictures of the buttons (play and exit) and just used g.drawImage to draw my Image to the ...
2
votes
1answer
76 views

How to render a PNG-file on the screen with SDL? [duplicate]

I'm coding a 2D platformer in using C++ and SDL2. I've started by coding the GUI, however I'm unsure how to get the menu buttons onto the screen and in the right positions. How do I load the PNG ...
0
votes
0answers
19 views

How to set the layer texture2d image in unity

I am working on onscreen arrow indicator. I have placed some sphere on the screen and attached the code below to each gameobject. And also I have a canvas,which consist of a panel. public Texture2D ...
-1
votes
1answer
58 views

When mouse on a button image appear?

my canvas have three buttons and images. What i need is make the mouse showing an image when it enter the button without click on it. public GameObject button1; public GameObject button2; public ...
0
votes
0answers
55 views

Unity 5: How to handle stacks of “windows”

I'm having a hard time coming up with a clean and simple way of implementing a window manager of sorts. I have placed some limitations below: Windows can never move and its positions are fixed at ...
1
vote
1answer
28 views

Is there a way to start UI animation transition with code in unity?

I have made an animation for a button in unity's UI prefab, but i want it to start only at certain times, when i command it with code. How can i do this?
1
vote
1answer
81 views

Applying a getButtonDown & getButtonUp on a GUI button for touch input

I have a GUI interface with a button for the character's attack, however I want to implement a defense button where the user can hold the button down to block incoming attacks, when the user stops ...
0
votes
1answer
82 views

GUI rendered into texture(s) or not?

I am eyeing OpenVG and cairo as rendering libraries for my pet game GUI. You can use both to render either into a texture or issue GL commands to draw directly onto the display. If I would use them ...
0
votes
0answers
61 views

How to build a UI which is bent in Unity, probably with a shader or mapping on a mesh?

So for the moment I'd like to have my UI shaped like a cylinder, later on it would be cool to curve it all the possible ways. So the Cylinder doesn't have to be visible, the UI should just be bent in ...
0
votes
0answers
306 views

Responsive (dynamically changing) Grid Layout Group cell sizes in Unity3D UI

I am trying to get my hands on the (not that) new UI system by experimenting a bit. I tried to do some Sudoku style layout. (cause lets start simple). Well, seems not that simple for me right now. ...
0
votes
1answer
114 views

2D Driving Game with Unity

I'm trying to make a 2D car driving game in Unity and I'm having problems with my code. I am able to move forward,backward,turn left/right using arrow key from my present code using UnityEngine; ...
0
votes
0answers
63 views

Handling with Speech Bubbles in SpriteKit

what is a good way to make Speech bubbles in our game like in Zelda, Pokemon, ...? SKLabelNodes have no line break and need to fit perfectly in the Bubble. Also if the text is long we need a scroll ...
1
vote
1answer
117 views

Cannot click UI button in Unity

I am working on Unity 5.4. I have an Event System, my UI has a parent canvas, Canvas has the graphic raycaster. I am not able to understand why this is not working. I have attached an image of the ...
0
votes
1answer
37 views

GUI scaling: Viewport-based scaling or individual logic

I want to use scene2d for creating a GUI for a libGDX game. In scene2d all sizes are provided in pixel units (instead of percentages). So I wonder what is the best approach to deal with different ...
1
vote
0answers
35 views

How to get what button was clicked on?

Other contexts in which this was done I'm sure have been answered for this kind of problem before. But this has thus far been a 2 week long impasse of wittling down all the other suggestions I've seen ...
1
vote
1answer
37 views

Text not instantiating under a canvas (unity)

Below is my code for a text I want to spawn under a canvas. Both spawn and I no longer get errors, but the text isn't spawning under the canvas. Instantiate(canvasparent); Text ...
-1
votes
1answer
116 views

How do I use the keyboard to activate buttons?

I have two buttons on my canvas: Play and Option. I use arrows to highlight the selected button. If I select any button and press space from the keyboard, it should active the button without needing ...
2
votes
1answer
119 views

Unity: UI following scene object lags or jumps

I have a 3D plane with "enemies", each one has it's canvas with a health bar, that follows the enemy position. When the enemy rotates, the health bar position gets laggy and jittery (you see no ...
0
votes
0answers
66 views

Line not showing up on render texture image

I have my first functioning weapon in my game, a laser beam. The game is centred around ship-to-ship combat, and the layout is like FTL's - a view of your ship, and a smaller window showing the enemy ...
1
vote
2answers
99 views

Unity - UI button not triggering custom script function

I have created simple movement buttons in my game. They should trigger functions of the player's scripts, but I can't link the button to the player object/script canonically from the inspector 'cause ...