2022 Developer Survey is open! Take survey.

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
2 answers
12 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 (...
user avatar
  • 2,502
1 vote
1 answer
58 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 ...
user avatar
  • 21
0 votes
0 answers
34 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 ...
user avatar
  • 1
0 votes
0 answers
21 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 ...
user avatar
1 vote
0 answers
17 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 ...
user avatar
  • 197
0 votes
0 answers
64 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: ...
user avatar
  • 161
0 votes
0 answers
24 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 -- ...
user avatar
  • 397
1 vote
1 answer
188 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 ...
user avatar
0 votes
1 answer
32 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 ...
user avatar
  • 31
0 votes
0 answers
17 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 ...
user avatar
1 vote
1 answer
24 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 ...
user avatar
  • 723
1 vote
1 answer
263 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 ...
user avatar
0 votes
1 answer
183 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)
user avatar
  • 166
0 votes
0 answers
16 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. ...
user avatar
  • 1
0 votes
0 answers
58 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 ...
user avatar
  • 1
0 votes
1 answer
26 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 ...
user avatar
1 vote
0 answers
142 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 ...
user avatar
  • 177
1 vote
0 answers
281 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 ...
user avatar
  • 111
1 vote
1 answer
271 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 ...
user avatar
0 votes
1 answer
107 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 ...
user avatar
1 vote
0 answers
15 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 ...
user avatar
0 votes
1 answer
43 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 ...
user avatar
  • 1
0 votes
0 answers
69 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 ...
user avatar
  • 1
0 votes
1 answer
59 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 ...
user avatar
0 votes
1 answer
202 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 ...
user avatar
0 votes
2 answers
427 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 ...
user avatar
  • 340
2 votes
0 answers
47 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 ...
user avatar
  • 21
0 votes
2 answers
339 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 ...
user avatar
0 votes
0 answers
15 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 ?
user avatar
0 votes
1 answer
75 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 ...
user avatar
  • 11
0 votes
0 answers
82 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 ...
user avatar
  • 2,428
0 votes
0 answers
59 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 ...
user avatar
  • 101
0 votes
1 answer
455 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 ...
user avatar
-2 votes
1 answer
114 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 <...
user avatar
0 votes
1 answer
543 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 ...
user avatar
3 votes
1 answer
2k 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?
user avatar
0 votes
0 answers
68 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 ...
user avatar
1 vote
0 answers
564 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 ...
user avatar
  • 626
1 vote
1 answer
55 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 "...
user avatar
  • 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 ...
user avatar
1 vote
1 answer
139 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 ...
user avatar
  • 23
-1 votes
1 answer
447 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?
user avatar
0 votes
1 answer
51 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. ...
user avatar
  • 21
1 vote
2 answers
246 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 ...
user avatar
  • 11
0 votes
2 answers
50 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 ...
user avatar
0 votes
1 answer
219 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? ...
user avatar
0 votes
0 answers
68 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 ...
user avatar
0 votes
1 answer
47 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 ...
user avatar
1 vote
1 answer
47 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. ...
user avatar
  • 23.4k
-1 votes
1 answer
50 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 ...
user avatar

1
2 3 4 5
14