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
0answers
21 views

Is there a library to easily implement a gui into a OpenGL application (SDL)? [on hold]

I'm writing a basic OpenGL built on SDL2 application to build up my skills. I would like to implement a gui (buttons, widgets and layouts, etc) to my game, but I don't want to have to write it all. My ...
0
votes
0answers
33 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
21 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
55 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
37 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
32 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
43 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
80 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
25 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 ...
0
votes
1answer
53 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
25 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 ...
0
votes
0answers
28 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 ...
0
votes
1answer
27 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
49 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 ...
0
votes
0answers
39 views

How to minimize texture binding count in Libgdx UI?

I use two TextureAtlases for my game graphics - first one contains all images while second contains bitmap fonts of different size and style. I need to use MipMapLinearNearest / Linear texture filters ...
2
votes
1answer
37 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
37 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
43 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 ...
0
votes
1answer
42 views

Display a variable in the UI

I have been searching and searching for an answer to this question but nobody seems to be helping me. I have wasted the past two hours trying to figure out how to do this, so please help me out here. ...
0
votes
0answers
91 views

C++ - Is this a good way to handle GUI events?

I am developing a UI framework for my game (SDL2, C++). I have a ScreenManager class which manages a list of UI widgets on the screen (text, buttons, etc.). The function below builds the main menu ...
0
votes
1answer
75 views

Keeping a UI element inside the screen at all times

I have this UI element that follows an arrow around the screen. The problem is that sometimes, due to the parenting, the element goes outside the screen. I need a way for it to "hit the walls of the ...
3
votes
1answer
58 views

Using a script to draw an icon next to (i.e. inline with) a text label in Unity

Suppose mystring is a string variable (whose value changes over time) and that myIcon is a texture or sprite of known dimension, say 32x32. Is it possible to write a Unity script that draws myIcon ...
0
votes
0answers
36 views

Rect Position doesn't reset if animation is canceled

I have a text component that displays a text with an animation. If I disable the GameObject while the animation is running, the Rect Transform doesn't reset to the original position, which makes the ...
0
votes
0answers
56 views

Unity UI: Buttons not highlighting

I have a World Space canvas named UI, which has multiple empty child gameobjects, each one containing multiple buttons and text. All but one are inactive. Once I press a button on the active empty, ...
1
vote
2answers
44 views

GetComponentsInChildren<GUIText>().text - does not contain a definition

My Slider GameObject has a GUIText child. I am writing a C# script that should change the text component in the GUIText, but instead of this I am getting: error CS1061: Type UnityEngine.GUIText[]' ...
1
vote
1answer
75 views

How can I get UI element over which pointer is in Unity3D?

I can detect if mouse is hovering any UI element by EventSystem.current.IsPointerOverGameObject(). But how do I know which GameObjest it is exactly? I have tried: if (EventSystem.current....
1
vote
1answer
46 views

UI 5: Slider Pressed

I am using the UI slider from Unity 5 and would like to display a text every time the handle knob is touched/pressed. My understanding is that my script should extend some Event System interface. ...
0
votes
1answer
38 views

3D Menu Attached to an Object?

So I'm gathering information for my project, and one of the things I want to achieve is to create a very sophisticated crafting system and weapon modification but I want the weapon customization to ...
1
vote
0answers
54 views

External gui within a render loop

I was wandering how easy is to interface existing Java programs/GUIs inside a game loop. Sorry if my question is a bit vague. I'll try to explain. I am currently designing a simulation environment ...
0
votes
1answer
207 views

Creating a list of buttons dynamically in code

I have a list of contacts. I need to create a scrollable list of buttons that are created dynamically so I can add each contact name as the button text. How would I do this all in code? My biggest ...
1
vote
0answers
38 views

Unity 5.3.5 - Blurry UI text after switching canvasses - until text is refreshed by turning visibility off/on or changing resolution

I have multiple scenes in my project where the canvasses are switched between, each canvas having UI text included on it. The project was originally created in 5.0 and I have just updated to 5.3.5 ...
0
votes
0answers
25 views

Rendering Map at point

I am trying to have the map display over the background image of my play screen and I cant find a way to have it appear to the side. I would like it to appear where it is in the example i made in ...
1
vote
0answers
40 views

Displaying an image when ScrollPane item is highlighted

I would like to have images displayed when an item in the list is highlighted as a form of a "preview" of the map that is selected. I'm not sure how i would implement this with clickListeners or ...
0
votes
0answers
46 views

Unity 5.3.5 - UI 'BestFit' Text no longer appearing correctly after updating project from 5.0

I have a project that was originally built in Unity 5.0.0, it is very text heavy and includes hundreds of UI Text boxes. Due to the fact I have a translation plugin that changes the text into 7 ...
2
votes
0answers
136 views

FPS game UI theory [closed]

Are there any researches concerning FPS game interfaces? I'm interested in analyses of designing & positioning UI-elements. The only thing I can find are blogs and articles about immersion in ...
-3
votes
1answer
42 views

How to assign GUIText from heirarchy into prefab object?

I want to assign GUIText from heirarchy into prefab using that C# code: private Text HighScoreText; void Start(){ HighScoreText = GameObject.Find("HighScore").GetComponent(); } But ...
0
votes
0answers
65 views

GUI, interface/listener equivilent in c++

brief intro I am currently working on a game engine using SFML for a small project, Coming from Java I know a fair bit but unfortunately I have come across a lot of snags (to be expected when ...
1
vote
1answer
67 views

Interactive Controls (switches, knobs, buttons) in Unity

I'm working on a puzzle aspect of a game, and wanted to make a section where players relay information to one another, and have to input the correct values. At its most basic, its a few stored ...
1
vote
0answers
54 views

Unity Event after Layout update but before OnWillRenderObject()

Looking for subscribe-able event that occurs right after Layout update in Unity but before OnWillRenderObject is called. Working solution is Canvas.willRenderCanvases, but useful to know if more ...
3
votes
1answer
89 views

Dragging text element into Text variable unity 4.6

So I was trying to make a UI element to keep score in a unity (4.6) project and I'm having trouble assigning the 'Text' element to the Text variable. So I have the text element with the script ...
1
vote
3answers
960 views

UNITY : I want to make my UI text fade in after 5 seconds

I know this question has been asked and asked but none of the topics i visited gave me an answer. I'm making a game programmed in c# where you control a boat and i want my UI to appear smoothly by ...
0
votes
0answers
29 views

Animations and timed events in a UI

I'm making a GUI framework for my game and I want to add animations. For example when a textbox appears, it can fade in and scale up to size. I want to give the framework user the ability to combine ...
0
votes
0answers
92 views

Unity alpha of all parented canvas groups

I'm codin aberration effect for Unity UI. It's works great, but I wish to control aberration intensity via rendered object's alpha. So for example if i have parented canvas group with alpha 0.5 I ...
0
votes
1answer
42 views

Touchpad Unity UI

For my Unity game, I want a touch surface (UI Panel). I started implementing a MonoBehavious that should handle touch-started, touch-ended, touch-moved/dragged and double-tap with custom methods. I ...
0
votes
3answers
39 views

Unity - Accessing a UI's text through a Transform

I have this in my player's component list. The HungerTarget transform is the text box in the UI canvas. How would I change the UI's text here? using UnityEngine; using System.Collections; public ...
0
votes
1answer
92 views

How can I use web browser controls for non-browser game GUI? [duplicate]

I'm looking for a way to get a modern browser's level of customization and rendering quality in my c# monogame to avoid using roundabout/limited/buggy GUI toolkits and to get better fonts without ...
1
vote
0answers
108 views

How to reset RectTransform's position?

So, I am trying to make a simple GUI Instantiate system. The GUI is going to spawn successfully, but the position is wrong. Position : (Left, Right: 249.8423 ; Top, Bottom : 400) Anchors : (Min: X:...
0
votes
1answer
35 views

How to get which gameobject the mouse is over in Unity?

So I'm working on a simple drag-n-drop based trading card game for my own amusement. There is a card inspector included. What I want to achieve is to change values in the inspector (which has its ...
0
votes
0answers
121 views

Unity Mask shows black content in world space canvas (Vuforia)

So I've built my scroll rect, like this reference tells me to do : http://docs.unity3d.com/Manual/script-ScrollRect.html -> Scroll View (Rect Transform with scroll rect attached) ---> Viewport (...
-1
votes
1answer
84 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 ...