Graphical User Interface. A term used to describe the tools available to the player to interact with the game.
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 ...
6
votes
1answer
307 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
40 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
35 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
26 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
35 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
59 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 ...
1
vote
1answer
55 views
How to render a PNG-file on the screen with SDL?
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
18 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
57 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
49 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
24 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
66 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
59 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
44 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
155 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
101 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
41 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
83 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
32 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
32 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
33 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
73 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
56 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
76 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
52 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
75 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
51 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
111 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
88 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
69 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
80 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
61 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
2answers
179 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
57 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
45 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
60 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
275 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
67 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
29 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
49 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
67 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
167 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
68 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
79 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
60 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
93 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
2k 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 ...