Questions tagged [gui]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
131 views

Unity Ui - Thin lines appear differently even though they are the same height

I have an issue that is driving me crazy. All these lines are 2 in height, but when moving around the screen they change thickness. As you can see the top line is thinner. What can be done to make ...
0
votes
0answers
50 views

Lifecycle for UI objects

I'm currently developing UI features using OpenGL. The initial way I structured all source code is that before accessing the game loop (rendering functions, event processing...) I define the UI ...
2
votes
0answers
39 views

What is a natural way of rendering dynamic (partially view dependent) GUI elements?

My question is really about low-level rendering techniques, but I'm going to illustrate it with a high-level GUI example. I'm not so much interested in GUI design, but rather in some basic concepts ...
1
vote
2answers
30 views

Interacting with UI with a locked cursor?

It seems like Unity has disabled UI interaction while the cursor is locked, which is frustrating because the store in my game is an actual in-world one, and thus means the player has to look at the ...
0
votes
0answers
8 views

Content size fitter but shrink

I want content size fitter that shrink the object making it smaller instead of making it bigger, how do i do it ?
0
votes
1answer
38 views

Tween a pop-up containing several buttons

I am developing a small game with Phaser 3. I want to make a container with several buttons, representing a pop-up dialog. The container needs to pop up on completing a task. When container pops up, I ...
0
votes
0answers
25 views

how to disable or block all ui interactiablity in canvas without any blocker image?

I need to disable any interaction from UI for some reason. I know there are some approaches like using a blocker image to disable the whole UI but I don't want to use that. I need to know is there ...
0
votes
0answers
25 views

Line Up Overlay UI Elements with World Space Object

How do you line up something in the UI with something in the world? I'm trying to use Camera.WorldToScreenPoint() but I cannot figure out how to implement it ...
1
vote
1answer
54 views

Why is my UI not working on android but works perfectly on PC?

I tested my game for the first time on mobile and the UI almost doesn't work. I use if(!EventSystem.current.IsPointerOverGameObject()) to check if I'm clicking on ...
-2
votes
1answer
35 views

I need a game over (UI image) to appear after timer reaches 0

So here is my timer script that works fine. I need it to activate the game over (UI image) when the timer reaches 0. I tried attaching a game over script to the UI image (GOS script)..... no luck <...
1
vote
1answer
126 views

What's the best way to draw gizmos in build

I currently use Unity gizmos for many debugging purposes, but I'd like almost all of them to be visible to the player in-game (when the game is built). For example, when a player is dragging to place ...
1
vote
0answers
24 views

Unity UI circular clickable area

I'm building some somewhat involved UI stuff using the Shapes vector package. I need to be able to detect clicks on a circle, but also need to be able to click on things right next to that circle in ...
3
votes
1answer
207 views

How to integrate images into text lines in Unity?

Here are two screenshots from Stellaris, where images are seamlessly integrated into the text. How can I achieve this in Unity?
0
votes
0answers
19 views

UI Element only showing in sceneview and not game in Unity3D

I have a game and in one part, in the start of a scene its supposed to trigger an animation that shows a UI element that covers the whole screen to make a smooth transition from one scene to another. ...
0
votes
0answers
37 views

How do I highlight the squares adjacent to my player in a Isometric grid

I am making a grid base RPG (like Fire Emblem but isometric) but currently I'm stuck on the movement, mainly the UI (showing how far the player can move around the board). Like the image below where ...
0
votes
0answers
97 views

Orientation changed event in Unity3D?

I'd like to listen to orientation change events, so for example my UI layout or the components themselves can be changed. All I've found is that I should check the value of ...
1
vote
1answer
42 views

Skill button cooldown

When a spell is on cooldown I display a "unfilling" black bar over the spell GUI until the cooldown is reached. Problem is when i have more than one second of cooldown the scale of the "...
0
votes
0answers
28 views

How to make counter unity? [duplicate]

How do I count how many diamonds my player has collected in my 3d world What I need to do is to make a script which will update my text ui when the player collides with a diamond but I do not know how ...
2
votes
1answer
48 views

Detect when item has been dragged & dropped onto an inventory slot

In my inventory system I want to be able to drag and drop items into inventory slots. I managed to make it work, but only in a weird way: When the player starts dragging, it picks up the item and it ...
0
votes
1answer
42 views

The Architecture of a Scrollable Retro Menu Navigation System

I've been trying to research on this topic for quite a while and found barely any useful information. What I want to achieve: Replicating a scrollable menu navigation in Unity, like shown here. It ...
0
votes
0answers
16 views

How do i keep the image size proportionate after camera size change

Basically, I want to keep an image the same size on the screen maximized as it would be minimized. Is there any way to do this without a script?
-2
votes
1answer
166 views

How do I make buttons function on the cursors click in roblox studio? [duplicate]

I would just like to know how to add buttons in roblox studio because when I play roblox and see all those great games with buttons that I can click! How do I make a button, and how do I make it work?
0
votes
1answer
32 views

ScollRect Jumps while Filling

I have a UI panel with a scollrect inside, which I fill dynamically. It can only be moved vertically. When filling this scollrect, the content jumps up and down for one frame, creating a weird look. ...
1
vote
2answers
126 views

Curved 3D health bar

Hello I would like to make a curved healthbar (like if it is drawn on a cylinder). See the spatial UI element left to the shoulder of the character on this photo for what I mean. There is a main ...
0
votes
2answers
47 views

How do I stop clicks on a button from also triggering my gameplay scripts?

My character jumps when I press the right side of screen. The pause button is alsp in the top right corner. So when I press that button, the right side script always triggers and I don't want that to ...
0
votes
1answer
98 views

How do Nethack frontends work?

I have been trying to learn about GUI frontends for Nethack, but I have been unable to determine how do they get the game information (map, inventory, player info, enemy locations, etc) from Nethack? ...
0
votes
0answers
45 views

Unity 3D - Why does my button need to be clicked twice to work?

My goal is to go back and forth between a series of animations by clicking left and right arrow UI buttons. I wrote this C# script and the "next" button (which executes ...
0
votes
1answer
27 views

libGDX imagebutton seeing double

If I leave my imagebuttons' width and height alone I get larger buttons than I'd like: radio.setX(wu*35); radio.setY(hu*20); When I replace/add to the ...
1
vote
1answer
45 views

What interchange format should I use for e.g. subtitles and UI texts?

Are there any standard formats that can be used as the source material for game texts (i.e. subtitles, UI texts, etc.)? I can think of the following constraints: at least some style effects (e.g. ...
0
votes
1answer
28 views

Transparent gui Shows another gui when it is not supposed to?

I am making a game in roblox. and in that game i need a Main-menu. and the main-menu gui is basically transparent and there is more guis behind in another ScreenGui ...
0
votes
0answers
57 views

GraphView: Dragging a Blackboard causes it to get stuck offscreen

I'm playing around with learning GraphView, and running into some strange problems with the Blackboard component. Here's a very simple repro: ...
0
votes
1answer
45 views

Should UI systems update naively with events and data from outside, or should they be coupled to some game state/singleton to know to change itself?

I'm making a game in Unity for my game dev course in uni. I hope the question isn't too confusing but I have bolded sort of like a TLDR at the bottom. My level currently has a pregame UI panel, to set ...
2
votes
1answer
125 views

Using multiple pygame_gui managers

I would like to structure my gui into different panels. so to help keep my code managable i thought it might be a good idea to have a main panel. with its own manager and then a secondary panel with ...
0
votes
0answers
14 views

How to display number of collisions on UI in Unreal Engine using nodes only?

I am using Unreal Engine and I want to show on UI the number of collisions using nodes only. How can I achieve that?
1
vote
0answers
749 views

How can I implement UI in Unity using Chromium?

I'm looking for an alternative to UI Builder. Ideally I'd like to have basically a Chromium instance atop Unity3D which would have its JS calls somehow land in the C# (maybe in the "Update" ...
1
vote
1answer
73 views

What is the Unity 2019.3.5 version of `UnityEngine.UI.Text`?

I was following a tutorial on how to create a dialogue Box in Unity, and in one part of the tutorial the tutor imports UnityEngine.UI and creates an object of type <...
2
votes
2answers
121 views

how to structure game logic for user interfaces of different nature (gui, tui, cli)?

I would like to implement a simple game logic engine that is agnostic to the rendering system, but I don't know how to do that, really... so I would like to have advise and know the state of the art! ...
0
votes
1answer
53 views

Add buttons into List when mouse is HoldDown?

I have three buttons in my menu. What I need to do is when I click on first button it becomes the first element in my list. Now, when I keep mouse button down and move it to the second button it ...
0
votes
1answer
30 views

Change the min width/height of a LayoutElement to scale with the screen size

I want to change the Min Width and Min Height configured in my LayoutElement so that they scale proportionate to the screen size. For example, at a screen resolution of 1920x1080, the min width is 300....
2
votes
2answers
234 views

How to make attention grabbing notifications?

A lot of my play-testers miss the tutorial notifications in my game. The notifications fade into the screen and fade out after the player progresses away from where the tutorial was relevant. I've ...
0
votes
0answers
41 views

How to make a dynamic frontline system for my game?

My problem: Basically the units, units meaning soldiers or vehicles, influence the frontline by moving into the opponents territory (See example image). I'm trying to understand where to even start ...
2
votes
1answer
83 views

Design pattern for menu transitions in C# (Unity)

I am working on my first project in Unity using C# and I am currently trying to design a menu system that does the following sequence of events when a user clicks a button: Button does some effect ...
2
votes
2answers
65 views

Make UI draggable from clicked vertices of UI

I am able to make my UI panel draggable. Here is the script, it will be helpful: ...
0
votes
0answers
67 views

Unity UI Chat Message Expanding Bubble

How do you set up Unity's UI Layout system so that the chat bubble changes in size automatically based on the length of the text? What's the right use of Layout and Content Size Fitter elements? How ...
0
votes
0answers
17 views

Canvas Drag and Drop children within parent

I have a working drag and drop script for gameobjects within a canvas panel. I would like to prevent the panels children from being dragged outside of the panel. I have a somewhat working (although ...
1
vote
0answers
36 views

Horizontal scrollview only

I am using unity's scrollview. I want to disable the vertical scrollbar and i want the viewport to resize vertically depending on the content. Too confusing to explain with word so i have created the ...
0
votes
1answer
155 views

How can I add word wrap to EditorGUILayout.TextArea?

How can I add word wrap to the editor textarea? I'm trying to mimic the [TextArea] attribute (word wrap, automatically increase height when needed) For some reason GUILayout.TextArea() works fine, but ...
0
votes
1answer
67 views

Gradient Input in Game view

I want to develop a little tool to help visualize fireworks before using them in a show in Unity where the user can set several parameters and gets a preview of the firework effect in a preview window....
1
vote
2answers
139 views

Unity: How to work with forms

Today I learned some cool tricks about sizing containers and its children, I mainly using this, because I need to build some forms. But now... It is some preffered way how to handle forms? Or some ...
1
vote
1answer
108 views

How to move objects across a canvas with consistent speed on different screen resolutions?

I am making a rhythm game in Unity. I have been using Transform.Translate for moving images on a canvas as the music notes. However, I cannot consistently use this method on different screen widths. ...

1
2 3 4 5
14