Graphical User Interface. A term used to describe the tools available to the player to interact with the game.
0
votes
1answer
31 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
20 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
29 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
47 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
11 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
35 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
47 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
43 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
44 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
33 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 ...
1
vote
0answers
47 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 ...
0
votes
0answers
44 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
59 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 ...
-1
votes
1answer
35 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:
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
42 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 ...
1
vote
1answer
84 views
UI Text Won't Change Color in Unity 5
In Unity 5 on Windows 10, I try to change the text color from the Inspector and in scripts, but the color won't change. Here are some screenshots of my Text objects open in the inspector, with there ...
0
votes
2answers
49 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
262 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. ...
1
vote
0answers
25 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 ...
1
vote
2answers
61 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 ...
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 ...
1
vote
1answer
58 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
25 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 ...
1
vote
1answer
591 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 ...
1
vote
1answer
81 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
40 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 ...
0
votes
0answers
45 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
70 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 ...
3
votes
1answer
95 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
81 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
1answer
62 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 ...
1
vote
0answers
79 views
Why are these unity UI buttons only responding to the top half?
I'm instantiating UI objects with buttons on them into a scrollrect. For some reason, all of the buttons will ignore their bottom half with the exception of the last prefab instantiated. Below is a ...
2
votes
0answers
68 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
1answer
47 views
Prevent button layout changing after one is removed?
I have a layout with four buttons in it. I end up removing one of the buttons using:
View v = (View) findViewById(R.id.ViewId);
((ViewManager) v.getParent()).removeView(v);
The ...
1
vote
2answers
430 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 ...
1
vote
1answer
50 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
1answer
34 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 ...
1
vote
2answers
79 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
134 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
55 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
37 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
143 views
Unity UI Button not working on PC build but working on Android mobile build
I am using Unity to build a game that is going to be used on PC and on mobile devices also. The problem I have is that when I use Unity UI Button, on mobile (android) is working perfectly but on PC ...
0
votes
1answer
688 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
1answer
46 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 ...
0
votes
2answers
186 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
299 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
181 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 ...
0
votes
2answers
2k views
How to detect mouse over for UI image in Unity 5?
I have an image that I have setup to move around and zoom in and out from. The trouble is the zoom can be done from anywhere in the scene, but I only want it to zoom when the mouse is hovering over ...
0
votes
0answers
50 views
Unity 2D - GUI box not moving with game object on X axis
I am trying to create a health bar above a spaceship in a 2d spaceshooter. Right now I just need to create a box and move it with the player. I found WorldToScreenPoint() which should work althought ...