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
33 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
0answers
29 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
41 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
33 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
46 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 ...
1
vote
1answer
88 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
13 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
23 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
25 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
16 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
94 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
40 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
58 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
38 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
30 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
82 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 ...
0
votes
0answers
48 views

How to ignore Pointer Exit event when click on the UI object?

When pointer enters, it calls a function that make a Boolean true. When it exits, it makes the Boolean false. But when I click on the UI object it calls Pointer Exit for very small amount of time(low ...
1
vote
3answers
512 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
24 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
38 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 ...
1
vote
1answer
23 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
38 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
58 views

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

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
55 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
27 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
61 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
77 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 ...
2
votes
0answers
72 views

Optimise Gear-VR text rendering with Unity

I have a problem with my text being always kind of broken, so there are just some parts of the text visible (parts of letters) and the text flickers a lot. At the moment I have this text 2D-UI text ...
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
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
68 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(...
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
0answers
174 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
1answer
50 views

LibGDX Textfield - Text Overflow - Not Wrapping

In my app's registration screen, the textfield is not wrapping text as I expected. Notice in the above image, the email field is not containing the text. I have set the size of the textfield using ...
0
votes
2answers
55 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 ...
1
vote
1answer
90 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
94 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
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 ...
0
votes
0answers
130 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
95 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
22 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 ...
0
votes
1answer
100 views

Collision between UI element and GameObject

When I first started to develop in Unity I followed the Unity Tutorial for the Space Shooter 2D game and used the knowledge from that to create something myself. Looking at it now it may not have been ...
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 ...
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
48 views

Text field is null while running but not in inspector

I've encountered a strange problem. In my game I have a prefab called UiManager. It has two public Text-fields, one for score, and one for lives. I only have one instance of this prefab and I've ...