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
24 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
38 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
41 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
36 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
14 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
34 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
26 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
87 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
45 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
70 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
44 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
23 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
44 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
25 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
21 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
18 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
80 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
12 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?
0
votes
0answers
265 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" ...
0
votes
1answer
53 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
91 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
43 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
24 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....
1
vote
2answers
213 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
38 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
60 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
62 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
45 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
16 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
27 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
75 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
49 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....
0
votes
0answers
31 views

Unity TextMeshPro bounds.size is wrong when hovering first time over gameobject

I have this weird issue, which I am not able to fix. This is my third attempt and I need some help. Basically I have a hover element which spawns when I hover over a gameobject. The height of the ...
1
vote
2answers
82 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 ...
0
votes
0answers
41 views

Visually edit a libGDX GUI scene

I'm looking for a way to visually edit a libGDX scene. Some way to quickly build an example of a scene using a provided skin and default components, visually, and then export this definition to be ...
1
vote
1answer
87 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. ...
0
votes
0answers
14 views

Use arrow keys to navigate between specific toggles, not all UI elements

I'm making a game where the player needs to select a object out of three and navigates between then with the arrows of the keyboard, and I'm using toggles to make this system. But the problem is that ...
0
votes
1answer
248 views

Is there no UI culling for unity?

I don't understand, am I missing something? I have hundreds of moving images on screen that only need to render and do their logic/physics when they are in the canvas. Otherwise they can just ...
0
votes
1answer
72 views

Best way to make a Side Panel UI with Libgdx? (Java)

Take this image for example, the game is called Realm of the mad god, and it has this side panel filling the whole screen height with the player info. To reproduce it, Is there any way to make the ...
0
votes
1answer
27 views

Monobehaviour script method does not appear as an option for UI button's On Click

I have the following script, and when I try to use a UI button to call the CheckGuess method, it does not appear as an option: ...
0
votes
1answer
28 views

Controlling Source Image From Script

I am trying to make a health system where hearts display how much health you have. On each heart, I have an Image component. I am trying to control what source image the Image component uses from a ...
0
votes
0answers
36 views

Unity button tint

unity button tint allows me to give a few colors to different modes of the button: normal, highlighted, pressed, and selected colors. I want to fully disable the "selected" mode color, since whenever ...
0
votes
1answer
273 views

Unity UI's Image component renders without anti-aliasing?

I tried the sprite's import settings with point filtering, with billinear filtering, I also tried changing my canvas' UI Scale mode to Screen Space - Camera, but nothing seems to fix it. I also tried ...
1
vote
0answers
175 views

Drawing rectangle around a target on screen

I am just started with Unity and C#. I need in my work to do rectangle on a scene. I have a 3D scene, say some warehouse and there is an object. Camera is animated and moving towards the object. Is it ...
0
votes
1answer
191 views

How to make a 'Picture-book Cutscene' in Unity 2D with simple 2D images?

I'm trying to implement a simple cutscene system in my Unity game, preferably one that allows cutscenes to play at the start and end of each of the levels. What I was imagining was pretty similar to ...
0
votes
1answer
57 views

UI Sprite in Unity3D is badly drawn? (Possibly anti-aliasing problem)

I move a 28x42 Image, in a 11x17 RectTransform in Update, with anti-aliasing on, without compression, with point filtering. But sadly its visuals aren't smooth, it's flickery, even in a standalone ...
0
votes
1answer
84 views

How do I display the next speaker image in my dialogue?

I am working on a dialogue system and while the text part works, the UI for the Dialogue Boxes does not. When I click on the Continue button, I want the script to go down the Elements [] and use the ...
0
votes
1answer
80 views

How to position/transform vertices for 2D UI in shaders?

I am building a 3D engine and have a rendering abstraction that focuses on writing shaders. Most my 3D shaders have gl_Position output like: ...
0
votes
1answer
123 views

Unity UI Objects edges are not smooth

I have this Unity UI Image placeholder and here is the snapshot As you can see its edges are not smooth. First I thought this is editor problem but after making the build it remains the same. What i ...

1
2 3 4 5
13