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
9 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
22 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
71 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
23 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
26 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
19 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
35 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
54 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
24 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
81 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
64 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
33 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
14 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
95 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
74 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 ...
0
votes
1answer
19 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 ...
0
votes
1answer
29 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 ...
0
votes
1answer
21 views

Sprite is getting out of screen when changing resolution - Unity

Hello I am making this layout: I used sprites for birds but used UI for the blue food thrower. I used UI for it so it will not get cut when screen resolution changes. But I also need to add food ...
1
vote
1answer
72 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 ...
0
votes
0answers
98 views

Lag in updating UI

I have code that changes the color of an image when a touch screen on Windows 10 is touched. When the screen is touched I also have an external function that I call to toggle a GPIO pin on a board. My ...
1
vote
1answer
102 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 ...
1
vote
1answer
87 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?
0
votes
1answer
21 views

Unity UI glitches while loading

I have the following scene canvas elements: ...
1
vote
0answers
64 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 ...
0
votes
1answer
60 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 ...
0
votes
0answers
15 views

How can i show interstitial admob by click button moving to the next scene in Unity?

How can i show the interstitial ad admob in the action of click button to move in to the next scene, I'm already trying something which one you will see in bellow. *first method i'm creating a ...
2
votes
2answers
68 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 ...
1
vote
1answer
40 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 ...
0
votes
1answer
27 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) ...
0
votes
3answers
445 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 ...
0
votes
0answers
22 views

How can I place a context menu in my scene?

I want show a menu like for an inventory item like this: At first I thought that this is a normal object in WorldSpace. I made the canvas appear like this: Unfortunately that didn't work: If the ...
0
votes
1answer
36 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 ...
0
votes
1answer
24 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 ...
0
votes
1answer
58 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 ...
0
votes
2answers
43 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 ...
0
votes
1answer
36 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], ...
0
votes
0answers
35 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 ...
0
votes
1answer
48 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 ...
0
votes
1answer
491 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 ...
3
votes
3answers
625 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 the ...
1
vote
1answer
61 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?
0
votes
0answers
32 views

How can I put an expandable UI element inside a Vertical Layout Group and make everything expand to fit its content?

I found this tutorial on how to build an expandable "accordion"-style UI element, but it doesn't seem to deal well with dynamic resizing. If I put a Vertical Layout Group inside the collapsible body, ...
0
votes
1answer
26 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 ...
0
votes
1answer
97 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: ...
1
vote
1answer
1k 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 ...
0
votes
1answer
139 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 ...
0
votes
1answer
39 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 ...
0
votes
0answers
13 views

Slight delay on mobile device with UI popping up after Unity splash screen shows

I'm using Unity 2018-.2.18f1 personal. If I create a new app, add some UI elements (panel, text, buttons) and export the project to a mobile device (iOS in my case) the splash screen with show then ...
0
votes
1answer
62 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 ...
1
vote
2answers
54 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 ...