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
0answers
43 views

UE5 - stop hiding the Content Draw

Semi-Solution: Going to Window > Layout > UE4 Classic Layout opens out the content browser and other stuff without them closing down again. However, I'm still not sure how to set it to stay or ...
0
votes
1answer
55 views

Getting the actual height of content size fitter parent

I have a parent gameobject (Empty) with a content size fitter with horizontal and vertical fit set to preferred size which is also a ...
0
votes
1answer
38 views

Godot: Invalid set index error

I'm trying to make UI for my game and making a button that changes its own focus neighbour when pressed: $SettingsButton.focus_neighbour_left = $ItemGrid/Slot2 But ...
1
vote
0answers
14 views

Editing an InputField on mobile with the keypad open, it wont let me edit another field without loosing focus on the current 1st. How to by pass?

When I'm typing into a tmp input field on a mobile keypad, I can't instantly edit another input field by clicking it!? I have to click off the keypad to loose focus on the current before I can click ...
0
votes
1answer
35 views

How to recreate a comic book panel transition with my canvas (simple 2D background art)?

https://www.youtube.com/watch?v=Tqqf5Y8LyR8&t=23s&ab_channel=ErikLoyer So I want to achieve a transition like from the above video, specifically at 0:23 the TRACK, but there is a 3 Dimensional ...
0
votes
0answers
36 views

match-3 Board border

I'm new to unity and I'm currently working on a match-3 game. I know there are a lot of similar games and that's why I would like to know what is the best way to autogenerate border of a match-3 board ...
0
votes
1answer
32 views

On a UI element(Input field) and overlay canvas how do I find the very bottom middle pos of the UI using it's height from it's rect transform?

I'm trying to place one in our field right below another, all ui belonging to an overlay canvas. I tried doing a few different ways subtracting height from different position types including rect ...
0
votes
1answer
28 views

Unity make an Expandable Scroll List (adding elements) [duplicate]

I am trying to make a scrollable list with premade elements that you can add using a button. The problem is that the list's Content element needs to be exapanded as ...
0
votes
2answers
195 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 ...
2
votes
0answers
43 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 ...
0
votes
2answers
61 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
10 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
48 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
30 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
27 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 ...
0
votes
1answer
129 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
39 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 <...
0
votes
1answer
263 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 ...
0
votes
0answers
26 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
629 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
20 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
41 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 ...
1
vote
0answers
217 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
44 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 ...
1
vote
1answer
54 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
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
244 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
37 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
160 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
113 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
49 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
34 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
46 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
31 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
73 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
47 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 ...
1
vote
1answer
163 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 ...
1
vote
0answers
1k 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
84 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
135 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
59 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 ...
-1
votes
1answer
37 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
239 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
52 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 ...
1
vote
1answer
102 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 ...
1
vote
2answers
69 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: ...
1
vote
0answers
37 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
208 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 ...

1
2 3 4 5
14