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
1 vote
1 answer
51 views

New to Godot having problem understanding Button Group

I'm having an issue trying to understand the ButtonGroup logic, totally new to GDScript, don't have a clue of what I'm doing. Obviously is wrong. I created a scene that I saved in a folder called &...
  • 113
0 votes
0 answers
26 views

Make player object freeze / become non-interactive when text pops up

I have a Dialogue system that shows up when a scene starts or a player touches an object. I am wondering if is it possible to make the player freeze/not interactable when dialogue pops up. I don't ...
  • 1
0 votes
0 answers
54 views

Blurry text in low resolution game using TMP

This could be a simple solution that my mind cant grab right now. So, I am working on a game with a specific resolution which is 64x64. I using unity latest version. as for my text I am using TMP. My ...
  • 1
1 vote
0 answers
45 views

DSL to describe (and maybe render) tech trees? [closed]

Are there any open-source instruments with easy-to-write (maybe YAML-like) syntax which allow to describe tech tree in text file and (preferably) render it by some diagram engine like graphml(yEd) or ...
0 votes
2 answers
76 views

Is it possible to move Overlay Canvas away from (0,0,0) in the Scene View?

In our workflow we use a Screen Space - Overlay canvas for UI. The only problem with it is that you can't change it's position (...
  • 2,502
1 vote
1 answer
155 views

Problem with placing isometric tiles above and below each other

In unity when using the in built tale palette to place tiles into the scene, I have come across a small problem. Im using an isometric tile-map and whenever i go to place a block, I end up placing a ...
  • 21
0 votes
0 answers
54 views

Having GUI on side rather than on game screen

How would I make it so that rather on the game screen the GUI is on the side of the screen and puts the game screen in its own little area so that its not covering part of the screen because right now ...
  • 1
0 votes
0 answers
72 views

Unity - Struggling to Get Custom Scrollbar Working

I'm Struggling to setup a scrollbar that takes two simple shapes, I don't really understand them and the tutorials I've seen use the basic scroll bars which I don't want to use. What I'm trying to do ...
1 vote
0 answers
43 views

How to tell which letter or vertex of a letter is at a certain screen position with a Unity UI Toolkit Label or TextElement?

I am using the Unity UI Toolkit and I would like to create my own TextField class (ie. input field, similar to the one I'm typing in now to write this message) with better functions using the Label ...
  • 419
0 votes
0 answers
315 views

How does the Unity Editor use shader stencils in the UI?

It seems clear that Unity UI has some use for shader stencils, based on the fact that UI shaders tend to have something like this: ...
  • 161
0 votes
1 answer
62 views

Draw a graph as a world map in UI?

What's a good way to take a graph of nodes and draw it in your UI as a map? I already have a graph and I'm happy with how it's generated. However, it doesn't have any positional data for the nodes -- ...
  • 427
1 vote
1 answer
218 views

How to define custom coordinate space?

I'm trying to build small UI framework. And I want it to have a coordinate space such that origin is placed in top left corner (x increases to right, y increases to down). I think for UI it should be ...
0 votes
1 answer
41 views

How to generate the in-game world map UI for a large world?

I would like to generate a map of the game world (i.e. a world map for a full screen UI). I am not an artist so would like to automate the process. For small levels I was able to do this by capturing ...
  • 31
0 votes
0 answers
45 views

How do I get Win32 GUI to render while rendering with DirectX?

I am trying to make a Map Editor for my RTS game in DirectX 8. Everything worked properly until I started drawing with DirectX, and now, everything is drawn after the main scene, preventing the ...
1 vote
1 answer
31 views

DOTS entity debugger -- trouble inspecting elements within a dynamic buffer

I'm using Unity 2021.2.7f1 with the latest versions of DOTS available. When I open up the entities debugger "Windows / DOTS / Enities" I can begin inspecting the live component values ...
  • 733
1 vote
1 answer
655 views

Unity custom editor - nested Property Drawer is getting Enum names for the parent property, instead of the child

I have a class, EnumMap<TEnum,TValue>, for associating each member of an enum type with a value of a given type, since I find myself running into situations ...
0 votes
1 answer
548 views

How do you get the texture coordinate hit by the mouse on a UI Raw Image in Unity?

It seems raycast hit does not work for UI... is it possible to get the .textureCoord of a point hit by the mouse on a UI raw image? (raw image provided by a render camera elsewhere far far away)
  • 184
0 votes
0 answers
19 views

Particle effect blocks text of GUI

when i add the line ftext = Instantiate(..... all particle effects are blocking the text of the GUI, when i delete the line, everything works fine again. ...
  • 1
0 votes
0 answers
69 views

How do I make something like Minecraft's crafting table

I'm making a mod for version 1.16. I want to make a crafting table with 3x3 grid which is automated. I need it to implement and read other mod recipes and minecraft recipes. I need to know how I to ...
  • 1
0 votes
1 answer
33 views

how do place UI in code at bottom screen?

I am struggling to figure out how I can add a UI prefab on screen in code so that it appears "anchored" at the bottom center of the screen. I realize this might be a common question. I ...
1 vote
0 answers
299 views

Rendering 3D items in a GUI in Unreal Engine

I have various buildable 3D items in my game like so: These are just a few, but there will eventually be hundreds of them. The models of each of these items are displayed to the user as part of a ...
  • 177
1 vote
0 answers
598 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 ...
  • 141
1 vote
1 answer
637 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
1 answer
178 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
0 answers
20 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
1 answer
55 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 ...
  • 1
0 votes
0 answers
92 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 ...
  • 1
0 votes
1 answer
105 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
1 answer
577 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
2 answers
565 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 ...
  • 349
2 votes
0 answers
50 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 ...
  • 21
0 votes
3 answers
587 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
1 answer
106 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 ...
  • 11
0 votes
0 answers
489 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 ...
  • 2,470
0 votes
0 answers
159 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 ...
  • 101
0 votes
1 answer
783 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
1 answer
212 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
1 answer
878 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 ...
3 votes
1 answer
3k 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
0 answers
105 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
0 answers
923 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 ...
  • 661
1 vote
1 answer
62 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 "...
  • 13
0 votes
0 answers
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
1 answer
341 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 ...
  • 23
-1 votes
1 answer
635 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
1 answer
73 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. ...
  • 31
1 vote
2 answers
364 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 ...
  • 11
0 votes
2 answers
52 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
1 answer
278 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
0 answers
224 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 ...

1
2 3 4 5
14