Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gui]

Graphical User Interface. A term used to describe the tools available to the player to interact with the game.

1
vote
0answers
13 views

Using Unity Post Processing v2, how can I apply processing effects to just the UI?

I am using Unity 2018.3 with HDRP 4.9, and Post Processing 2.1.3. I would like to apply post processing effects (i.e bloom) to the UI only. I tried the 2 camera approach, but still can't get it ...
0
votes
2answers
79 views

Technical term for the border that appears around the screen, usually in response to low health?

This had a strange term but I can't remember what it's called and it's difficult to search for.
0
votes
1answer
69 views

JavaFX - How do I create a health bar?

I tried searching online on how to implement health bar with Java FX in a 2D side-view Java fighting game but I can only find those that goes with 'awt' and 'Swing'. The health bar I'm picturing are ...
1
vote
1answer
29 views

Create context menu in Scene view

I created some MenuItemfunctions for navigating, which are currently displayed on the menu toolbar. The C# code: ...
0
votes
0answers
36 views

how do I instantiate a prefab that adds to the score text in c#?

Hello I'm working on a game with random generation, a dungeon crawler of sorts. i need to be able to have an object that when instantiated, adds to the score(the goal is to find all of them as the ...
0
votes
0answers
15 views

How to customize sliders in Unity3D

I would like to customize a slider in Unity3D but don't know how to accomplish this. I want to change the border (i.e. the thickness and color) of the slider. How do I change the corners? Also I ...
0
votes
0answers
33 views

How to zoom image on Unity UI to particular point where mouse cursor is located?

I have some RectTransform on Unity UI. I have already implemented some Zoom functionality but now I need it to zoom to the area where the mouse cursor is located. Currently, it zooms to the anchor ...
2
votes
1answer
54 views

UI/Menu that works with and without VR (Unity, WMR)

I'm working on an app that I want to be useable without and with VR (with a Windows Mixed Reality HMD like the Samsung Odyssey). For non-VR I'm simply using a canvas in "Screen Space - Camera" and a ...
0
votes
1answer
15 views

Rewriting a text object [duplicate]

I'm trying to set up a UI system. Say I have a text object 'text' which is visible onscreen. I want to change it with a button press using a script such that the text box's previous string is replaced ...
0
votes
1answer
22 views

Unity UI Buttons don't work when clicked, don't seem intractable at all

This is probably a quick and easy fix but I can't seem to get it. As the title says I've got UI buttons which appear when my character dies, they used to work just fine but now suddenly when doing a ...
0
votes
1answer
39 views

Why is this LIBGDX Action behavior THE EXACT OPPOSITE of what I expect?

Here is a code snippet of the relevant section in my render loop. My intention was to make the actor who was currently focused blinking, to indicate that it was the currently selected UI element. But ...
1
vote
0answers
18 views

How to attach an UI button to a prefab and follow it in Unity2D

My plan is creating a button above my prefab (a tree) and whenever my character is detected, the button will appear and allow me to click on it to active a dialog. I just want my trees are randomly ...
0
votes
1answer
29 views

Error in DRAW GUI event on android. (GameMaker)

Image of the game on a mobile phone: As you can see the maze (draw event) has been resized correctly. But the yellow post-it (draw GUI event) has not been scaled or displayed in the correct location ...
0
votes
0answers
266 views

How to sort cards' on-screen positions by their suit?

I have a 13 cards and sort button. When I click that button, I want all the cards of each suit to be grouped-together on screen. So if I have 4 diamond cards in my 13-card hand, all 4 diamonds must ...
0
votes
1answer
34 views

Make Unity GUI for mobile phones only?

I'm using Unity and I want to make a responsive GUI for portrait resolution only. Now I'd like to know if this is a good or bad idea when I force the user to play my game in portrait mode only. Shall ...
0
votes
1answer
43 views

Unity - Button still interactable even when interactable is set to false

my button can still be pressed in-game even if I set it to button.interactable = false; What I'm trying to achieve is when the Panel ...
0
votes
0answers
157 views

Blurry text in Unity UI at default scale

I'm working on a VR (GoogleVR Cardboard) game, and need to include UI elements within it. Ever since I first learned how to use Unity's UI elements, I've been limping around what seems to be a major ...
0
votes
1answer
20 views

Contracting Unity EditorWindow UI

How can I make scalable(contracting) EditorWindow UI(not in-game UI) like in inspector example?
0
votes
1answer
20 views

Trying to mix and mingle 3d physics with the Unity UI

I have recently created a drag drop system where I drag stuff from a UI menu and then drop it to another UI. The child of the draggable UI object is a 3d model. I have attached box collider and ...
0
votes
1answer
43 views

“SetSelectedGameobject” only highlights button on second try (Unity 2017.3)

To support the use of a gamepad in the options menu I set SetSelectedGameObject and firstSelectedGameObject (which doesn't seem ...
0
votes
2answers
79 views

How can I make the cursor avoid something completely?

I wrote some code for a UI button that causes the mouse to avoid it. I realize this is kind of a weird thing to do in a game design-wise, but this is a really weird game. I need a button that is not ...
2
votes
0answers
45 views

Quest UI Display in Unity 2D

I have this quest manager script where I store all my quests for easy duplication. I'm adding a feature that gives the player the option to see his/her current to-do quest. The first thing I ...
1
vote
1answer
103 views

Blurry UI when using Screen Space Camera

I am using Screen-Space Camera as a render mode on canvas but the Textmeshpro text and other UI elements are looking blurry around edges. I think it might be due to canvas scaler setting. After ...
0
votes
0answers
55 views

Dynamic width panel

I have some issue with my UI when I change screen's width. I have two panels, which named Left Panel and Right Panel. Each has top left/right pivot point. Above screenshot was captured with 1280x800 ...
0
votes
1answer
80 views

Does a successful attempt count as an attempt?

I'm writing a video game and I'd like to know if I should include the "successful" attempt in the count of "total attempts". For instance, in a clay shooting game, if the player needs four shots ...
0
votes
2answers
177 views

Unity 3d texture animated round circular bar

I'm struggling to create a circular bar with an animated texture and a round cap end. What I would like to create is implemented in the Unity game Subnautica - the bottom left bar. So here is the HUD ...
0
votes
1answer
21 views

Unable to add button in Unity

I am wanting to add a button to my scene in order to mute/unmute music. I can add the button to my scene, but it's not appearing on the UI. I can't see it anywhere, not on the scene nor the game ...
0
votes
1answer
41 views

How to clip what is outside scroll view when using a custom UI element?

I have created a custom UI element (that use CanvasRenderer). Here is code : ...
0
votes
1answer
69 views

Trigger the button's onclick after checking that the cursor has been on it for some time

I would like to have the mouse hover/click the button for a fixed amount of time (5 seconds) before triggering the onclick method, it can click only after they have ...
2
votes
0answers
235 views

Create a curved UI

I am new and Unity and I want to do a curved UI as if I project a canvas on a cylinder, a bit like this : picture Thing is, it is not that easy. I found this question and answer, but didn't manage to ...
0
votes
0answers
84 views

Unity WorldToViewportPoint not giving correct results

I have a script that places an UI element on the place where a 3d object is in 3d space. I do this in the following way: ...
1
vote
0answers
41 views

How can I render 3d objects over uGUI?

I have a scene with 3d objects but need uGUI as background. How can I achieve this?
0
votes
0answers
38 views

Player name / health bars in scenekit

i'm working on a game right now in SceneKit and swift. it's a multiplayer game with the camera fixed in an overhead / isometric view. I need to now add health bars, player names etc attached to the ...
0
votes
1answer
19 views

jMonkeyEngine ignores keyboard input

Created a game login form using the Nifty GUI. The interface reacts to the movement and clicking of the mouse, but ignores the input in the text fields. Whether the program is looking for a click ...
2
votes
1answer
79 views

Decouple GUI from Logic

I don't have an educational background in the programming-world; however, I've been working on a programm in my spare time for the last two years. I'm currently struggling with how to decouple the ...
2
votes
0answers
169 views

Why doesn't the Camera.pixel(Height/Width) match the Canvas size?

I am making an app that has a custom viewport Rect like so: When I check the sizes of this viewport rectangle in pixels with Camera.pixelHeight; Camera.pixelWidth,...
0
votes
0answers
17 views

Unity - Text/TextMeshPro not rendered propery when far

Hi guys I noticed that the textmeshpro Im using is not rendered properly when I am far a little bit, what is the cause of this? It is not readable as the L.A. Lakers Merchandise INC Text
0
votes
1answer
83 views

Unity - Raw Image Size scaled to Photoshop

I'm just a beginner in Unity, so basically, I want to find out the exact measurement unity of the raw image so that I can now design in photoshop. I tried in Pixels in photoshop but when I import it ...
0
votes
0answers
109 views

2.5D UI, perspecitve view, distort objects by angle but not position

Instead of thousand words, a few pictures to explain what I want to achieve How do I get the merit of UI objects rotation in perspective projection, but ignore the position of an object(as in Overlay ...
0
votes
0answers
31 views

Unity: Adding Panel to Dropdown messes with height

I created this Dropdown menu in Unity 2017.3.1f1 using the standard "Dropdown": Hierarchy: Instead of the Template being the Dropdown's direct child there's a TemplatePanel that is the parent of ...
1
vote
1answer
39 views

My Canvas has an image which I am using for my background but it is blocking my Camera from seeing my Game Scene

So I am not entirely sure how to explain this as I have not had any luck searching online and I'm sure this is a simple problem but I'm being stupid and can't see it. I have a Canvas which is for my ...
0
votes
1answer
37 views

unity UI limitation for tutorial purpose

i want to add a tutorial part to my game that i make by unity.i have some panels that for tutorial purpose i want to limit user to just click a button.most of games make a dark panel over all places ...
1
vote
1answer
73 views

Unity - UI - Raw Image with Texture becomes Smaller after Build

I am a beginner in the game development world, I have just one quick problem with the UI, as you can see during the Unity Player, the UI (Raw Image w/ Texture) is normal in size but when I build my ...
0
votes
1answer
33 views

Use IPointerEnterHandler with bool function?

Im trying to use mouse pointer to detect any UI element on my canvas. when pointer enter any UI element, UI_active set true, else UI_active set false. Here is my script: ...
1
vote
1answer
95 views

How to create button prompts for interactable objects in Unity?

I have a class of objects tagged as interactables that my player can interact with when within range. When my player is near them, I want to display a button ...
0
votes
0answers
53 views

how can i make a text selector on touch move (like word cookies game)

i want to simulate "touch to select" in android studio (like the following picture) if Anyone has an idea please help me. i have a Constraint Layout that contains 25 Buttons So I place the button ...
0
votes
1answer
23 views

make a unified image out of many sprites in unity

i made a customization character system that it has a seperate image UI for every part f body like eyes, hat, ears and... now i want to make a unified texture out of it to be able to save it as an ...
1
vote
1answer
230 views

ReorderableList in Unity with Enums

I'm trying to setup a simple ReorderableList in Unity 2017.3 for a list of enums. Adding items workes fine but selecting, dragging and deleting items from the list does not (see gif). Here is my code:...
0
votes
0answers
92 views

Unity. Scroll view, scroll to item in scroll view by script

I have a Scroll view on Unity UI with lots of items on it. Each of them has a title. I have created an alphabet for navigation in scroll view items. For example, if I press "J" letter on alphabet I ...
0
votes
1answer
188 views

Unity. Input in function for UI button OnClick

I am trying to create multiple selections for some items on my UI. To perform multiple selections of items I want a user to hold left control button. But then I add ...