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
0answers
13 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
17 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
27 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
28 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
28 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
0answers
22 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 ...
0
votes
0answers
18 views

Maintain UI position with Aspect Ratio Fitter and anchor preset is set to stretch

So i have a text UI using Aspect Ratio Fitter with Aspect Mode Height Control Width and i set anchor preset to stretch upward . To make it easier to understand , i want my text to stretch upward ...
0
votes
0answers
7 views

GridLayoutGroup items maximizing area with scalable items

How can I make GridLayoutGroup to scale children keeping their aspect ratio, with no overflows?
-1
votes
0answers
33 views

Libgdx, size of the button on phone really small

I making a game, so I created main menu with scene2d,on PC my menu looks good (big buttons on the center of the screen), on my phone it looks very small, what should I change? If you see any code I ...
1
vote
0answers
24 views

UI clicks hitting the GameObjects below

I've made a simple script which makes a mesh with a collider act like a button. However the mesh button get clicked through the UI. I figured out how to fix this in editor, however this problem still ...
0
votes
0answers
13 views

Pan over an image like a map using scroll container in godot?

I want to create a level select screen, the aspect ratio for my game screen is 576*1024 and the image, I am using is 2048*2048. What I want is for the user to scroll the screen and navigate along the ...
0
votes
2answers
35 views

How to create a countdown timer that shows hours, minutes and seconds in unity?

Kind of an easy question but everything I have found on this topic is either outdated or only counts down numbers and not time which is what I need. How can I go about creating a countdown timer where ...
0
votes
0answers
10 views

LibGDX Scene2D a different way of implementing a GUI scale setting other than multiplying everything by a constant?

I have a bunch of UI elements for my game. I have an inventory, HUD, hotbar, in-game menu etc. Now I want to scale these based on a setting. I import the settings from a file and basically put it in a ...
0
votes
0answers
17 views

What is the order of execution of OnClick and PointerUp in Unity?

I have an UI element in Unity with a Button and a Event Trigger component. The Button component calls a method when the OnClick event is triggered, and the Event Trigger component calls another method ...
0
votes
0answers
10 views

Unity - Shader graph - How to recreate fill function in UIImage

I am trying to create a circular health bar that would deplete on the Y-axis. This works fine on a normal image with Image type filled and fill method - vertical but I want the texture to be animated. ...
0
votes
1answer
18 views

How do I make an actor move to the foreground temporarily in LibGDX scene2d?

I have an inventory UI which is a table in scene2d. Then the table had a bunch of Containers which are basically inventory slots. They have a transparant grey background color. Then in each container ...
0
votes
1answer
67 views

Small health bar above entity is drawn differently when the entity is rotated differently

Here is a simple positioning code for my health bar: transform.position = Camera.main.WorldToScreenPoint(target.position - 0.2f * target.up); Here is the prefab: ...
0
votes
0answers
12 views

How to create brush that paints or erases in Unity(Mobile)?

Kind of a simple question but I have no idea where to start. Basically I just want to use my finger to drag along an image and either paint on it or erase the image texture entirely (presumable using ...
0
votes
1answer
44 views

How to communicate to an inventory item which character it's being used on?

Currently, I have an Inventory that is a ScriptableObject, which means it's not tied to any specific game object or player ...
0
votes
2answers
59 views

How to create game database editor interface like Age of Empires' AGE

Age of Empires had this powerful AGE (Advanced Genie Editor) tool to let players mod the game data with ease. You could see all the game's databases through this tool and play with them to make your ...
0
votes
0answers
31 views

Issue with button instantiation and variables in Unity3D

Im currently trying to make a system where an inventory of buttons are created and upon runtime the buttons are placed into a GUI component(Panel). I used a list of buttons which gets created on start ...
0
votes
0answers
47 views

PUN2 > Displaying all players' HP to a single pannel of a UI

I've set up a scoreboard-like UI to display all players' in the room as shown in the capture above. What I'd like to do is to display each player's own status info - Life amount as of now then ...
0
votes
0answers
53 views

Unity Input System On-Screen Button doesn't work with touchscreen 2019.3.2f1

I am trying to make my player jump whenever the space button is pressed (if a keyboard is present), and I'm adding a on-screen button for players on mobile. The on-screen button works fine in the ...
0
votes
0answers
61 views

How to adapt my mobile game for different aspect ratios?

Before I start, I'd like to note that I work in the Unity Engine, but the basic theoretical stuff should be similar just about anywhere. It's not really hard to get the game's camera/World view or UI ...
0
votes
1answer
53 views

How do I move/select menu options through UI joystick and buttons?

I have a working Menu system in my game. I am able to move across the menu using Up/Down arrow keys and select those options using the enter key. The problem is how do i get that arrow key ...
0
votes
1answer
29 views

How can I continue to rotate a 2D UI Object using OnPointerEnter when object is on its side? (OnPointerExit is triggered)

I have been wracking my brain on this for days. I'm trying to create a nice looking hand of cards, when the card is hovered over, it bobs up and down and rotates. This is triggered by OnPointerEnter, ...
0
votes
1answer
243 views

Different resolution for UI?

I'm developing my first game for mobile devices in Unity3D. My game uses a 720p-resolution. Currently the UI uses the same one. So far so good. I heard that professional game-developers create their ...
0
votes
1answer
25 views

How to automatically scroll vertical text?

I've a GUI, and a panel with a Text control. I simply want to do an automatic vertical scroll effect (circular). Problems I've to solve: - How to identify if text on my textbox is "too much" and ...
-2
votes
1answer
148 views

How to create GUI or Menu for games?

I've advanced quite well in OpenGL and in graphics. However I lack a lot of experiences. I have had this question in my mind since the beginning of my venture, how do I create UI or Menu for my game?...
1
vote
4answers
180 views

how to make ascii ui like in dwarf fortress

Only one text field, and inside it - different sections, menus, and popups, all in ascii. How to make that? I mean something like this: ...
0
votes
1answer
102 views

In Unity, how do I make text/annotations appear when I mouse over GameObjects in playmode?

How do I make text appear when I mouse over GameObjects in-game? What is the Unity jargon for this? I'm assuming it's 'annotations'.
0
votes
1answer
31 views

Bubble Text appears issue?

I'm trying to make a dialogue between characters using bubbles witth text. But the text appears not clear to player. The Cam is far from the canvas 13.5f. What to do fix it ?
0
votes
0answers
17 views

Enemy Indicator shows both front and back

I made a simple enemy indicator which show image over the game object which look like this: You can see that red exclamation mark is over the cube. Note that Canvas is Space Screen Camera, so I had ...
0
votes
1answer
142 views

Health bar without image collapsing to the centre in Unity 2D

I am trying to create a health bar that collapse symmetrically to the centre. The color palette of my game is minimal and the health bar is only one color that does not change with size. I am new to ...
1
vote
1answer
31 views

Mapping decibel range to linear audible intervals

I am working in an engine that encodes sound as decibels (dB). Let's assume the decibel range of human hearing is -60dB to 0dB. Audibility is not linear across this range. So my question is... How ...
0
votes
0answers
19 views

Rotating TextMeshPro InputField around Z axis makes its text disappear?

I have a TextMeshPro InputField, and if I rotate it around the Z axis, its text disappears. If I rotate it by 2 and 2 degrees, it slowly gets "cut off". How could I solve this? I want to rotate a ...
1
vote
0answers
25 views

Which Python package/library is best for this kind of game? [closed]

I'm wanting to make a small scale version of the game Hearthstone and other 2d games that I can implement self-learning ai in. I was wondering which python GUI would be best to display them. It would ...
0
votes
0answers
83 views

Is my UI good practice?

I've made a basic UI with the following interface in Unity: I have a few different states that I want to switch between by pressing buttons - the "in-game" the "menu" and "submenus". There's buttons ...
0
votes
0answers
24 views

Prefabs x coordinate of position is getting mysteriously updated after destroying and reinstantiating them

Project brief I am trying to make a gamified version of to-do where the player enters tasks and is rewarded with points and a tree grows with the progress. What I am trying to do I have a list of ...
0
votes
2answers
40 views

Unity open UI from ScriptableObject

I have a Canvas that has multiple UI Panels in it for an inventory, crafting, etc. To open these panels I currently have a ...
0
votes
1answer
190 views

Can't change anchor position and TextureRect size

I'm making UI, and want to set anchor to middle of the image, but changing anchor from Layout -> Anchors Only or setting Anchor value directly doesn't work. The value was updated, but anchor point not ...
0
votes
0answers
39 views

Can I create new UI elements and use them from Unity?

I created the following class, that should be used to display numeric text in a UI canvas (score, lives, etc.): ...
0
votes
2answers
65 views

How to access the parent of a cloned prefab?

I have a menu that gets populated at runtime with buttons whose text components are based on objects that the game manager has in its databases. At the start, the menu is empty: See that "A" graphic? ...
0
votes
1answer
75 views

Unexpected scaling of UI elements after build [Unity Web]

I have an unusual scaling of UI Elements after my build in unity for WebGL Game in Unity Engine: Game in Itch.io: Has anyone seen this kind of behaviour? any suggestions on what I should look into? ...
3
votes
1answer
82 views

Selected enemy off camera

I'm facing a problem with a game I'm making. Currently I can select an enemy and mark it as shown on the image: But now I want to show the position of the selected enemy on the screen when it's off ...
2
votes
1answer
1k views

How to render line renderer or trail renderer above UI canvas

I want to create a line renderer and also trail renderer that would follow touches but both must be rendered above my UI canvas — how can I do this? I have tried this with the "screen space camera" ...
0
votes
1answer
86 views

Unity “Text Mesh Pro UGUI” component rewrites my text! Make it stop?

I'm having this terribly annoying problem where my text is being overwritten by Unity. This Happens regardless of whether I am using tags or not. Here is what I want to appear (more or less, I don't ...
0
votes
0answers
15 views

Getting a control name/Displaying tooltip text

I am developing a character creator using Windows Forms (because apparently I can't create menus in Unity), and I want to display some tips and descriptions in a ...
2
votes
2answers
335 views

What does this Yellow Outline represent in Unity Text Mesh Pro?

What does this Yellow Outline Represent around Text Mesh Pro Text objects in Unity? I don't see any regarding them in the inspector making it so that I have eye-ball it in the scene view to make it ...
0
votes
1answer
227 views

After creating the Build of my Game, part of the UI isnt interactable anymore

This is my first time using Unity (and my third time creating a game in general), so I hope I can provide the needed information to solve this problem. When I start my game normally through the Unity ...

1
2 3 4 5
13