Skip to main content

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
1 answer
2k 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? ...
Arman Haque's user avatar
3 votes
1 answer
126 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 ...
Hector's user avatar
  • 85
2 votes
2 answers
15k 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" ...
Anmol Deep's user avatar
0 votes
1 answer
259 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 ...
hatinacat2000's user avatar
0 votes
0 answers
126 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 ...
JoeKalango's user avatar
2 votes
2 answers
2k 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 ...
Ultra Gamer's user avatar
0 votes
1 answer
3k 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 ...
Christopher's user avatar
0 votes
1 answer
58 views

CenterContainer makes my button too small

I get the perfect width for my buttons, but CenterContainer overrides that value of theirs to make the button as wide as the biggest text length of the buttons when I put the buttons inside of the ...
James T.'s user avatar
  • 113
0 votes
1 answer
1k views

Canvas overlapped by scene objects

I am doing a space game and I have a little problem when doing the GUI. As you can see here: the objects from the scene overlap the text from the GUI. From what I've seen on other topics, it seems ...
Hector's user avatar
  • 85
1 vote
1 answer
2k views

Why particle effect alway rendered after UI though they have same sorting layer and same sorting order?

Why particle effect alway rendered after UI though they have same sorting layer and same sorting order? I searched a lot of information about it,every one said that both of effect and UI are ...
Winson Song's user avatar
2 votes
1 answer
2k views

Unity 2019 depth-only camera now overwrites everything

We have a pretty traditional camera stacking set up: UI camera on top of a everything-else camera. The UI camera is set to only clear depth, and only draws the UI layer. The everything-else camera ...
Zoop's user avatar
  • 161
1 vote
2 answers
3k views

Unity particles rendering on top of camera space UI

I'm using LWRP in Unity 2019.1.12f1. The UI is in Screen Space - Camera. The shader used for the particles is Lightweight Render Pipeline/Particles/Unlit (Transparent, Premultiply). Any ideas?
mr-matt's user avatar
  • 2,759
0 votes
1 answer
145 views

Unity UI glitches while loading

I have the following scene canvas elements: ...
stardust4891's user avatar
1 vote
0 answers
840 views

Unity calculate the size of a text box before text gets drawn so it can lerp to the next size

Im trying to make a dialog box image that lerps to the next size. In order to do that I need to calculate the size of the image before the text gets drawn. My idea is to use the legacy GUI stuff ...
BigDuke6's user avatar
2 votes
1 answer
779 views

Making 2 Player UI

For practice, I'm trying to remake the character select screen from Street Fighter II. I managed get it working with a Grid Layout Group, ScriptableObjects, and some scripts to have the 1P cursor ...
JSparks's user avatar
  • 199
2 votes
2 answers
797 views

Sort buttons in unity 2D

I've a list of buttons that I create using XML stored data. To achieve it, I've created a Prefab. These buttons are created correctly, and now I want them to be ...
Btc Sources's user avatar
1 vote
1 answer
82 views

Edit existing editor inspector?

I want to write custom inspector for one of my scripts. All I want to change is input method for one of the strings to popup (so instead of writing whole string everytime I choose it from premade list ...
Bizio's user avatar
  • 13
0 votes
1 answer
404 views

Can a Unity button detect a tap AND send that tap through to objects below it?

I'm trying to make a "highlight frame," like a flashing box around a button for use in the game's tutorial. When the frame is tapped, I'd like it to register the tap (so the frame can be dismissed) ...
Nerrolken's user avatar
  • 174
3 votes
3 answers
8k views

Unity UI - Value of text input (assigned with OnChange event) is always "one letter behind"

I am having a problem in unity setting up a search field. I will post pictures down reggarding my problem but first let me quickly explain what is going on. I have input element in my ui and i have ...
Lucián Blažek's user avatar
0 votes
1 answer
107 views

Centring content within a scroll area

I've got a Scrollbar with a dynamically generated number of entries, and I'm trying to figure out how to get it to act so that there's a lead-in of the first 3 items (example number based on the size ...
Yann's user avatar
  • 492
1 vote
2 answers
695 views

How can I apply setActive to a UI element after an animation finishes?

I have an object animation which plays on the opening of a scene. When the animation is over I want the UI slider to be setActive - allowing the user to rotate the object. I have both these elements ...
Neeps'n'Tatties's user avatar
0 votes
1 answer
724 views

How to use styles in Monogame.Extended.GUI?

So i was looking at the Monogame.Extended.GUI Project and used this instructions to set it up in a .net Core Project. So far everythings works fine. I followed the example of the demo and created a ...
Ultralord's user avatar
0 votes
2 answers
1k views

How to get EditorWindow client rect?

I want to create a simple console-like custom EditorWindow in Unity. There is a bunch of lables (console lines). I'm using GUILayout.Begi/EndScrollView to position all the labels in one column. The ...
Skyblade's user avatar
  • 615
-1 votes
1 answer
1k views

how to make UI material ignore scene lighting, have same brightness as albedo?

I have a material on a quad surface object that is parented to a canvas for a pause menu. The material is animated (materials on UI elements such as canvases cannot be animated because of [reasons], ...
hatinacat2000's user avatar
0 votes
1 answer
191 views

Facilitator UI on desktop screen for VR

Hey and thanks in advance for any help/pointers The solution is probably straight forward but i am still a little inexperienced (while creating quite a few different VR unity projects mostly study ...
AverageGatsby's user avatar
0 votes
1 answer
170 views

UI background animation makes camera render beyond canvas, need fix?

I have a background animation for a menu where I have to make the background larger than the canvas and drag it over it. Even though I am using a panel the same size as the canvas as a mask, this ...
hatinacat2000's user avatar
0 votes
1 answer
9k views

Unity Menu navigation using keyboard/controller input?

I am trying to create a character stats menu that uses keyboard/controller input to navigate between options instead of the mouse. I have not found any tutorials for this kind of UI navigation. In ...
hatinacat2000's user avatar
1 vote
2 answers
2k views

Cursor is locked and hidden, and can't click UI

I have a player with a third person character controller component. I have a problem with the cursor lock: it hides the cursor so I cannot click UI buttons. ...
marul arifin's user avatar
4 votes
3 answers
6k views

Unity Round (Circle) Buttons

I have been using Unity and C# scripting now for the past 2 or 3 weeks. So yeah I am very new to Unity and C#. I wanted to know if there is a way to make a round (circle) button without using a rect. ...
Designs By Cornelius's user avatar
1 vote
1 answer
405 views

button thumbnail slider effect unity3D

I am trying to make this effect for buttons. i.e the middle one is bigger and is selected. the buttons can be moved left or right by swapping with finger. Does anyone have any idea how to do it?
thirteen4054's user avatar
0 votes
1 answer
34 views

How to make UI text longer?

I'm working on a menu that needs a wordy description, but I've noticed that it only shows 4 letters, then cuts off and this doesn't seem right. I right click, select UI > text and again, it only ...
CraftyMaelyss's user avatar
0 votes
1 answer
123 views

Set UI text using value from separate script

I've been working on the TANKS! tutorial from unity, attempting to add a U.I overlay that displays the scores of each player. I cannot seem to get it working with the current setup the game has: ...
M.A.Babcock's user avatar
5 votes
1 answer
16k views

Running into issues with Unity Vertical Layout Group

I feel sure that I'm missing something obvious, but I've been stuck with this over the past few days. I want to make a relatively simple UI component for a character creation screen that looks ...
JLC's user avatar
  • 53
1 vote
1 answer
2k views

Unity UI Dropdown list rendering on top of other canvases

I have 2 screenspace canvases in my scene.. Canvas 2 has just the mouse pointer image on it, the canvas has a sort order of 10. Canvas 1 has everything else on it, it has a sort order of 0. The ...
Guye Incognito's user avatar
0 votes
1 answer
185 views

How to check if a custom Control is focused?

So I am building custom UI for my MonoGame project. I've gotten pretty far already, having created Controls such as: Button Panel TextBox Form ComboBox CheckBox etc. All of these controls obviously ...
Johny P.'s user avatar
  • 113
1 vote
1 answer
188 views

Handling different aspect ratios on a 2D dodging game

I've been making a game where the player is on the ground and has to dodge objects falling to the ground. Since I'm using libGDX (But the question still applies to any other language/framework), The ...
Sarah's user avatar
  • 59
1 vote
2 answers
3k views

Can't interact with anything in UI canvas, although it was working previously

I'm working on a menu with several buttons and input fields. For a while everything was working fine, but suddenly every button and input field is not reacting to being clicked on, as if everything's ...
Griffin's user avatar
  • 11
0 votes
1 answer
278 views

Is it possible to customize the Scriptableobject inspector for Simple level data, without the use of PropertyDrawers?

I've invented an innovative, new game mechanic for Bricker Breaker Quest and want to create a quick prototype to recruit a game development team. After wasting a week researching the best way to ...
MXMLLN's user avatar
  • 115
0 votes
1 answer
1k views

Canvas UI elements out of place in Unity3d

I placed all elements in the places I want to show in the Game mode, nevertheless, when I go to Game Mode they are shown in the wrong place as it was shown in the pictures (they go to the center). I ...
JamesB's user avatar
  • 279
0 votes
1 answer
61 views

Unity: How to receive input events on a RectTransform that does not contain any image/text/...?

In Unity 2018.3: Imagine a GameObject with only a RectTransform component and a custom script attached to it - otherwise ...
SePröbläm's user avatar
0 votes
0 answers
41 views

Use references to UIManager script or direct for children OBJs

So I've got a canvas with UIManager script attached to it, the canvas has a lot of buttons and texts as children OBJs and they somehow need to communicate to each other. Should this be done through ...
ZippyDaFish's user avatar
1 vote
1 answer
306 views

Counter won't add to score [closed]

I'm trying to make a rolling ball game. But for some reason, I can't seem to get the counter to actually add to the score. Here's the code: ...
Connor Fineran's user avatar
0 votes
0 answers
15 views

NullReferenceException: Object reference not set to an instance of an object [duplicate]

Hi so im displaying food, health an water on the screen in a text box by using UnityEngine.UI and making text variables. They are all defined in the update function so they will keep changing and are ...
Declan Wadsworth's user avatar
1 vote
1 answer
468 views

Why Unity3D 2018 UI looks bad and very sharpy?

I update my project from Unity 2017.1.1 to 2018.3.9 and almost everything is OK except UIs. All of UIs like Images,Buttons,texts,text mesh pro, sprites and others looks very sharpy and pixel pixel ... ...
iman_sh's user avatar
  • 175
0 votes
1 answer
1k views

Unity Canvas hover image does not trigger event

So i have the following setup: This produces the following UI: Now on each of the "HudCircle"(Bottom/Right/Left/Top), I have the following components: As you can see I have a script that has the ...
Marc Rasmussen's user avatar
0 votes
0 answers
1k views

Simple shader that scales UI image from the center

I'm having trouble making a (vertex) shader that scales UI images from the center. I can scale the image, but the image doesn't stay centered. Here is a project showing the problem Here is a ...
Drin's user avatar
  • 51
2 votes
2 answers
1k views

Preventing the mouse from breaking keyboard navigation in UI?

I am trying to achieve the following, a behavior like Windows Explorer where mouse and keyboard play nice together. Here's a GIF along explanations: first I click one of the folders using the mouse ...
aybe's user avatar
  • 773
1 vote
1 answer
670 views

Changing text occurs error: move initialization code to the Awake or Start function

I have GameManager class that has Log method: ...
modernator's user avatar
  • 1,213
0 votes
0 answers
70 views

Issue with button clicked by mouse? [duplicate]

I have panel with some images and buttons. when I click on a button with "gold" name it works, and if I click on any thing other I got error //NullReferenceException: Object reference not set to an ...
user43474's user avatar
  • 537
1 vote
0 answers
218 views

How can I approach writing a GUI framework for my game? [closed]

The problem I want to write a simple GUI framework designed for a game, in order to learn the inner workings and nitty-gritty of how GUI 'engines' such as Unity3D's GUI work. I can't find any ...
HL.'s user avatar
  • 111

1 2 3
4
5
15