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)

2
votes
1answer
819 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
52 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
44 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
70 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
185 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
100 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 = ...
-1
votes
1answer
41 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
43 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
48 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
64 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
626 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
133 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
18k views

How to add a UI Text for keeping Score in Unity 5

My Problem is simple I want to show scores on my game. The examples on internet are good but in Unity 5 there are no GUI elements but instead these are now UI elements. I was following this example: ...
1
vote
2answers
74 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
314 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
36 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
450 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
65 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
33 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
65 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
9k 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 ...
1
vote
1answer
1k views

Unity UI Text Font Size changes with the screen resolution Problem

I am working on a project and now I have a problem . The problem is the font size. The font size is OK inside the Unity but it is really small when I play the game on a real Android device . My ...
7
votes
2answers
872 views

What in-game user interfaces are available? [closed]

I'm wondering what options are available for in-game interface libraries (not OS-level interfaces) and what are your opinions about them? Please put only one library per answer and follow this ...
0
votes
2answers
52 views

How to implement own UI widget in libGDX?

I want to implement my own widget, here is an image: what I want to get. Instead of numbers there will be some names, but I think it doesn't matter. I'm pretty new in libGDX, so could you please ...
1
vote
1answer
108 views

Making a Fall Trigger Game Over

I have been struggling with this fairly basic issue: To make a game over menu appear upon death. I am making a 3D game in Unity, where you, the player, must control a sphere with the basic controls: ...
0
votes
2answers
4k views

How do I create a simple clickable button?

I've tried to attach this function to the play button. public void Play () { Application.LoadLevel("Scene1"); } I've created an empty Game Object and attached my script to it. But when I go to ...
0
votes
0answers
52 views

Apply Pixel Perfect by script in Unity?

How can I apply Pixel Perfect by script in Unity? All I could find on the web is this which does help at all..
1
vote
1answer
86 views

Creating a Slide-Up Menu

How can I create a menu that slides up while "un-fading" as illustrated in this video? As you can see in the video, the menu also falls down a bit in the end which gives it a realistic feel. I ...
1
vote
2answers
1k views

LibGDX: Scrollpane won't scroll to bottom after adding children to contained table

To my game I want to add a gui element that displays text and textButtons whenever something is happening or it wants you to make a decission (an answer while talking to a person for example). To keep ...
3
votes
1answer
101 views

Function, that is searching for nearest enemy Transform only works sporadically. What am I doing wrong?

so I am trying to implement a "Zelda"- or "Dark Souls"-like z-targeting system. You'll see in the code, that the function compiles a list of every enemy in the current scene. I'm still in the ...
0
votes
2answers
109 views

How to make nifty gui textfield to use a larger font

Hi I have a text field on my screen but its tiny: <panel height="13%" width="100%" childLayout="vertical"> <text id="label1" height="50%" font="Interface/Fonts/MinionPro.fnt" ...
2
votes
0answers
87 views

Why are parts of this Unity scrollrect not being bound to the mask?

I'm setting up a system for people to load up extra levels. Since I don't know how many levels are going to be loaded I have a UI prefab that gets added to the main Level Load UI. However, the Text ...
0
votes
2answers
2k views

Libgdx actor bounds are wrong

The Actor's boundaries are not centered at the ButtonText but I used the setBounds() method. The higher the Y position is, the less centered is the boundary. The weird thing is that i only created ...
1
vote
2answers
713 views

Chromium Embedded Framework and Unity3D?

I have recently heard about the Chromium Embedded Framework and was over-joyed as I want to use html as my GUI source. I did find a C# version but it seems to be for Windows Forms. I'm not too ...
2
votes
1answer
2k views

How to create gui image with script

So I've been fiddling around with the new UI system recently -- and one problem I have is adding images of my sprites to the ui. I know I can create a prefab of an image gameobject with the sprite ...
2
votes
2answers
294 views

Swing GUI for games (performance) [closed]

I'm developing a game in Slick2D and I'm trying to make GUI. I've already tried TWL library, but it seems to me a bit complicated and it doesn't cover what I need. In my own implementation of GUI ...
1
vote
1answer
55 views

How would I load a new scene when a score that is stored in a string is reached?

This is a code that I am working on for a space shooter. Part of it works and my score does increase by 7 every second while being loaded into a GUI box, but my script does not load my scene when the ...
1
vote
2answers
97 views

Limit buttontext to one line in Unity?

I have many buttons in my game. There are different texts on them every time. But some texts are too long and get split up into two different lines. Is there any way I can fix this without resizing ...
2
votes
1answer
168 views

In My Direct2D Gui System, Is It Safe To Use A Bitmap Render Target Per Gui Element?

I am trying to implement a relatively simple GUI system for use in a few simple games. In this system, all Gui elements extend BaseControl. BaseControl has an update and draw method, as well as ...
0
votes
0answers
75 views

How to create a toggle button with slate in unreal engine?

How can I create a toggle button with slate? By toggle button I mean a normal button which remains pressed after one click and returns normal after a second click (the style is toggled). It seems ...
1
vote
0answers
40 views

Change gui in java game

im making a 2D Server/Client game, i have very little to no problems with the server but now i wanna work at the client. I think about using a JFrame and all the other gui classes/methods. My question ...
1
vote
1answer
111 views

How do I know what button was clicked? (Unity)

I have a prefabbed button (UI.Button) which I'm instantiating ten times: public void LayoutButtons() { GameObject newCanvas = Instantiate (canvas) as GameObject; for (int i = 0; i < 10; ...
4
votes
2answers
650 views

Unity Canvas blocking objects in Editor

I think I am missing something really basic here..., I'm creating a 2D game in unity, and the UI Canvas (with the setting "Screen Space - Overlay") is blocking exactly a quarter of my workspace. I can ...
0
votes
1answer
53 views

What determines the hit detection ordering for graphic elements in Unity (2d game)?

I have a bunch of overlapping buttons spread across several UI Canvases. The default mouse behaviour only registers hover/click events with one of the overlapping buttons, which is ideal for my ...
3
votes
3answers
2k views

How to correctly set window size in Libgdx scene2d.ui dialog

In my libGDX application I am using the scene2d.ui classes to render my game's GUI. One of the things I render via these classes is a dialog window with a background image set. I have created the ...
0
votes
1answer
70 views

My GUI stopped working?

Okay I bought this asset online so I would like not to show the whole script. The problem is this asset stopped working when I updated from unity 5.0 to 5.1.2. The script is for a controller GUI ...
0
votes
2answers
251 views

How to resize a button without resizing its text

I think it is done with the Anchors of the Rect Transform. I have tried all the possible combinations of the following default anchors: Unfortunately, when I resize the button in the Scene, the ...
1
vote
1answer
393 views

Creating a GUI Countdown Timer Unity5

This was originally posted as a follow-up comment to http://stackoverflow.com/questions/30714357/guitext-in-unity-5-need-an-alternative , but I'm asking it here as a dedicated question as per the ...
1
vote
2answers
207 views

Unity 5 Dynamic Button Creation with Event Parameters

According to the documentation, you cannot instantiate buttons except via prefab instantiate. http://docs.unity3d.com/Manual/HOWTO-UICreateFromScripting.html You might wonder why we don’t have a ...