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)

1
vote
2answers
2k views

Simple heart container script for 2D game (Unity)?

I'm attempting to create a simple mobile game (C#) that involves a simple three-heart life system. After searching for hours online, many of the solutions use OnGUI (which is apparently horrible for ...
-1
votes
1answer
76 views

Game puzzle pop in java [closed]

I am making a game in Java based of those puzzle popping games. The objective is to select with the mouse and remove a tile. The game i want to build. I have a JPanel and on top, several Components, a ...
1
vote
1answer
39 views

Implementing my own UI sprite class in Unity using shaders: where and how to position the sprites

For learning purposes, I am trying to implement my own UI classes in Unity "from scratch", in the GPU using shaders. I mean, I am trying to use simple 2D sprites either positioned via shaders or ...
0
votes
0answers
16 views

Unity UI - Assigning Event Callbacks Via Script Fails for Objects Instantied by script

So I have a pretty basic tower defense game going on, there are set build points each with their own mini canvas UI for building and upgrading towers. Once you build a tower on them, they disappear ...
2
votes
1answer
142 views

screen space or pixel space for a GUI?

I want to design a very simple GUI for my game using OpenGL. So far, every GUI implementation I have seen uses pixel space coordinates ( x range 0.0 to screen width and y 0.0 to screen height) Why ...
0
votes
1answer
281 views

Can't see instantiated UI element

I'm trying to create a level editor for a 2D game and I wanted to instantiate radio buttons, the backgrounds and numbers of which are determined by the tilesheet I load. I'm sure I'm doing something ...
0
votes
1answer
86 views

How does one structure a Player GUI

I am using Java and the Slick2D library. I've been testing around with ways to develop a Player Graphical User Interface (GUI) (to show armour, items picked up, weapons equipped, etc). The one ...
1
vote
0answers
66 views

How does the Unreal Engine transaction (undo/redo) system work?

I would like the transaction system to handle the create/update/deletion of some custom objects. Then I can proceed as follow: // Create custom object: GEditor->BeginTransaction(FText::FromString(...
16
votes
4answers
54k views

Unity new UI - Dynamically change the functions called by GUI elements

Looking to dynamically change the value in the button OnClick and slider On Value Changed . If I had to guess on how this was done, get a reference to the button/gui element. Next get the Button ...
1
vote
0answers
37 views

Minecraft Crafting GUI weird bugs

I'm writing a Forge mod for Minecraft 1.8. When I'm pressing the 'z' key a 3x3 Crafting grid should open. In the KeyInputHandler I call @SubscribeEvent public void onKeyInput(InputEvent.KeyInputEvent ...
0
votes
0answers
25 views

Rotating a button in Unity UI by -180 on the Y and it stops working

The title says it all. if I rotate my button by -180 on the Y axis i cant even click on it. If for example I rotate it 180 on the Z axis everything is fine. Why does this happen and how can I fix it ?
0
votes
3answers
4k views

What are the steps to instantiate a button in Unity?

Given a Canvas test_canvas containing a Button test_button and an empty GameObject that manages instantiation and scripts and the like called test_manager, what are the steps to instantiate this ...
0
votes
0answers
171 views

Unity UI Drag and Drop with conditionals

I have a nice UI drag and drop system (big thanks to quill18 and BoredMormon for their tutorials) and want to get some conditionals in it. I have 4 numbers (that are instantiated on the canvas) that I ...
0
votes
2answers
54 views

Why is my canvas being rendered underneath everything?

I'm currently trying to implement a UI that will overlay a scene and follow a scene's main camera, but I'm running into some issues. When I set canvas's mode to Screen Space - Camera, the Z position ...
1
vote
2answers
25 views

How to create guides to off-screen objects?

I've played Metroid Blast on Wii U, and would like to build one of its features in a three.js game. The feature is: if an opponent is out of view, a guide is displayed showing the direction of the ...
4
votes
1answer
150 views

Need help with making a journal system

My game uses a system similar to Metroid Prime's logbook, in that it logs things the player encounters and discovers on their journey, categorizing it, etc. I want to write out all of the possible ...
1
vote
1answer
89 views

Creating a DPI and Resolution Independant GUI

How would one best go about it? Assuming I'm using OpenGL to do all the drawing. It seems like the best approach is to have the GUI elements maintain the same physical size regardless of the screen ...
0
votes
1answer
92 views

Unity - Hide GameObject that is behind UI

I have the following example: How can I prevent the part of the sprite that is highlighted in red and is behind the UI from being displayed on the camera, but having the background image still ...
0
votes
1answer
1k views

Unity 5 C# - onClick.AddListener in a foreach loop using lambda expressions

I'm trying to dynamically create Unity 5 UI buttons that each set a global variable decision_id to a different value when clicked. The problem I'm having with this implementation is that they all ...
0
votes
0answers
127 views

Unity onValueChanged Dropdown in loop

I am having a problem with dropdowns which I add them programatically, more precise with the onValueChanged event. No matter which dropdown value I change in game the parameter used by onValueChanged ...
0
votes
0answers
21 views

Perfectly overlap GUI bounds to tiles room

I have a scene built with several rooms procedurally generated. Then I have a GUI which should cover everything which is outside room walls. What I cannot sort out is how to have the GUI to ...
1
vote
2answers
12k views

Changing color of UI Text in Unity into custom values

There are a few objects in the scene as well as a title. I want the title to change its text and color based on the object that is mouse-overed. The script below is added to each object that is ...
0
votes
0answers
94 views

How to make a PROPER main menu (or any other UI windows/modals) in Unity?

So, I'm currently learning both about Unity for the first time as well as the 'new' 2D UI system, but I'm having a hard time figuring out how to make windows, modals/dialogs, main menus etc. which are ...
0
votes
1answer
21 views

How to refresh Unreal Editor Viewport when dragging a spinbox (FModeToolkit)?

The viewport of my custom EdMode does not update while I drag a spinbox (which is in a custom FModeToolkit). In fact, MyCustomEdMode::Render() is not even called (while the spinbox). How can I ...
0
votes
1answer
46 views

How do I lerp text color over time?

On my quest to understand Unity in a zero to hero sort of manner, I've run into a new problem I can't seem to really solve. From computer science I know that updating GUI on the same thread as ...
1
vote
0answers
83 views

game crash on android phone while using unity UI

I am trying to use an unity UI in my game. Initially I Created Canvas with all settings what I need then I compiled it on my phone its working perfectly. Inside the Canvas if I created any button or ...
1
vote
1answer
40 views

Help with open and close UI Menu on background mouse click

I am trying to make a point and click game in unity 5.2.2. My problem is that I need to have a UI menu to open, when the player clicks with the left mouse button on the background sprite, and it ...
0
votes
1answer
63 views

Access buttons individually made by a for loop (old Unity GUI, Unity Editor script)

I've got a problem and I am struggling with this for a couple of days now. I am making an Editor script and I want to access buttons individually when created by a for loop. There is a public class ...
0
votes
1answer
66 views

Ball can double jump in Jumper Game

I wrote a game that has a ball which can only jump (like in most jumper games) to avoid incoming obstacles (only, I haven't integrated the obstacles part yet). Right now, it's just a ball that can ...
2
votes
1answer
894 views

I can't drag'n'drop UI-Elements from the Scene-hierarchy into a public field (Unity 5)

I just watched this Video https://unity3d.com/learn/tutorials/projects/survival-shooter/player-health and tried to drag'n'drop the UI-Elements on the matching script, just like they did. But this is ...
0
votes
0answers
69 views

Merging OpenGL rendering result with other graphical elements like user interface. Concepts

For my application, there are several elements drawing: An user interface elements, and several libraries for rendering part of the content of the window. Lets imagine some kind of Google Earth where ...
2
votes
1answer
45 views

Rendering a dynamically sized box

So in games where there are textboxes with different sizes appearing, how does one actually render them efficiently? Games like Final Fantasy IX have dynamically sized speechbubbles for example, each ...
-2
votes
1answer
88 views

Python: Programming a game GUI [closed]

I'm looking for some suggestion on books or tutorials to make a game GUI with inventory management, map , stats... in python, as this is the only language I know a bit of so far. I want to design it ...
3
votes
2answers
210 views

How do I use Libgdx viewport for UI?

I am using LibGDX to make a game for Android and I am using 2 Viewports. One for UI and one for the actual game content. My problem is I can't find a good way to scale my UI using a Viewport. This ...
3
votes
2answers
108 views

WorldToGUIPoint seems always off by about 2 pixels

I'm trying to draw small boxes at each vertex of a mesh, in the editor. My OnSceneGUI code looks like this: foreach (Vector3 vertex in _mesh.vertices) { Vector3 worldVertex = _meshTransform....
-1
votes
1answer
49 views

Make Button always be at corner of the screen?

How can I make a button always be at the corner of the screen like so: Currently I have a button, child of canvas that does this:
3
votes
1answer
340 views

In tools development, what languages and technologies are currently in use?

I am an aspiring tools developer currently in university. Normally I use both C++ and C# to and from but as my time at university is coming to an end, what language and technologies are worth focusing ...
1
vote
1answer
45 views

How can I once run For Loop in void OnGUI?

I want once run GUI on screen same Initialization a number. I try say my think In easiest way then please payattention to this code: using UnityEngine; using System.Collections; public class ...
1
vote
1answer
52 views

AntTweakBar doesn't register SFML mouse events

I'm trying to add GUI for easier level editing in our game engine. We're using SFML for all the basic stuff (window management, input events etc). I've chosen AntTweakBar because it is a well known ...
0
votes
2answers
83 views

Detecting Left and Right Mouse clicks on UI Text objects that are dynamically created

So, in my game I create a bunch of UI Text game objects dynamically (in the C# script), but I just can not find out how to properly detect Left and Right mouse clicks on these UI Text that were ...
2
votes
3answers
1k views

How to dynamically create an UI text Object in Unity 5?

I have been searching for something that should be simple, but Unity 5's documentation on that is fairly outdated. What I want to achieve is to be able to create UI Text totally from script, i.e. ...
0
votes
3answers
143 views

Unable to Set Text of another Text Object

The Idea: Pressing a button in the canvas will allow the player to select a race. A script is attached to an object which is accessed though the OnClick() function of the button. The script is ...
1
vote
2answers
92 views

Continous repeatable object/image moving horizontally unity3d

I want to move objects on the screen horizontally. And the user has to pop the object by touching it. When user touch it, it gets destroyed and new object comes randomly. For experimenting, I used ...
1
vote
1answer
333 views

What would cause my script generated buttons and text to show in Unity and not on my phone?

I am using Unity 5 and the built in GUI tools. My static GUI shows up just fine which makes me think it's not a text/font issue or some such. Again, it all looks good in the Unity editor when I hit ...
1
vote
0answers
46 views

Unity: onEditEnd and onSubmit only firing from Return key

I have an InputField in my UI, but currently I can only submit its contents via the Return key. I tried mapping other buttons to the Submit action (e.g. the tab key on keyboard and the X button on my ...
2
votes
1answer
457 views

How do I animate Unity GUIComponents?

I want to transform my GUIWindow from the bottom of the screen to the middle whenever the user presses a button. How can I do this?
1
vote
1answer
69 views

Send Messages in Update Function Button UI Unity 5

I've been working on a project where i need to fulfill the following behaviors: 1) when clicking anywhere in the screen the character should do something 2) there are some buttons so except when you ...
1
vote
0answers
37 views

Unity keyboard GUI navigation priority

I noticed something strange while playing with my menu on keyboard. I have four items arranged in a square (i.e. the top-left item should be able to navigate to the top-right and the bottom-left). If ...
2
votes
1answer
66 views

How to make the inside of a cube accessible

I have a cube, it is made up of smaller cubes each making the big cube 8x8x8. The cube is the map. The player of the game needs to be able to appraise the entire map and understand it without having ...
2
votes
3answers
10k views

How can I create a button with an image in libGDX?

I am new to LibGDX. I am trying to develop a game for Android (so it will support different screen sizes), but I don't know how to put a button with an image. I tried ImageButton but I can't resize it....