Skip to main content

Questions tagged [unity-ui]

Unity UI is a UI toolkit for developing user interfaces for games and applications in Unity. It is a GameObject-based system that uses Components and the Game View to arrange, position, and style user interfaces.

Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

I am making a custom UI with the UI Builder for my scriptable object that holds some data for the AI Player. It all worked fine until I added a third slider for a new value I needed; now the object ...
Džoni's user avatar
  • 36
0 votes
1 answer
192 views

I have a small issue with my UI. Whenever I click a button on my pause menu ui nothing happens even when I hover over the buttons. However, in my main menu scene, the UI works without any problems. ...
Miracle's user avatar
  • 33
0 votes
1 answer
68 views

...
Nader Amir's user avatar
0 votes
1 answer
245 views

I'm using Unity NetCode for Game Objects. I have a player Prefab, inside it I have a canvas as a child of my player Prefab (I don't know if it's the best approach), which contains inventory, status, ...
Jamelaumn's user avatar
0 votes
0 answers
158 views

I have a graphic raycaster attached to a canvas, with the blocking layer set to exclude all layers except "UI": ...
arcadeperfect's user avatar
0 votes
0 answers
95 views

I was wondering how I could make an instruction panel for the users of my game in Unity. I will add a photo to this post that shows an instruction panel. Any explanations would be much appreciated!
Cezar P's user avatar
  • 45
0 votes
1 answer
335 views

I'm creating a 2D game, and all my game layers are UI canvases. Here's the issue: during debugging, every time I click on the screen, Visual Studio stops and displays "Frame not in module," ...
Alisa's user avatar
  • 1
0 votes
2 answers
820 views

I'm completely new to Unity. I'm trying to create something similar to Scrabble. I've simply got a tile as a sprite (red arrow).Firstly, I don't understand it being so small.. I'm trying to give the ...
Kingsley Obeng's user avatar
0 votes
1 answer
192 views

I have this UI with buttons that should be clickable whenever the UIDocument is enabled, but for some reason whenever I disable and then re-enable the UIDocument (in the second code block), the ...
skundu's user avatar
  • 1
0 votes
0 answers
66 views

There are 3 boxes and 3 socket interactors. I only want the second socket interactor to work when there is a box in socket one and the third to work when there is a box in the first and the second ...
SPP's user avatar
  • 1
0 votes
0 answers
170 views

I have transparent world ui elements in my game like so: What I've been noticing is that post processing through transparent elements is nonexistent, even though other parts of the scene work with ...
Elon-Musk-YAY's user avatar
0 votes
0 answers
27 views

I'm using Input System and Unity UI and the problem I have is a single event (i.e. mouse press) is being sent to both systems. Here are a few interactions to demonstrate the problem. Clicking on a UI ...
stripies's user avatar
  • 101
0 votes
0 answers
120 views

I am facing an issue where I'm able to adjust the resolution for different phones like Android and iOS but not for tablet devices. Is there any way to set it, for all kinds of devices, to display only ...
Mohammed Rilwan Ibrahim's user avatar
0 votes
0 answers
44 views

Hello I'm new to multiplayer development and I'm using photon pun 2 in Unity engine C# language. How can I update other players every-time I add another character to my text UI. The characters that ...
Ryan Cat's user avatar
0 votes
1 answer
535 views

Typically, conversion methods from world to screen coordinates and vice versa use a camera to perform these calculations, so I'm wondering how does GetWorldCorners ...
Serg's user avatar
  • 393
0 votes
2 answers
284 views

this is basic dropdown Ui object I want to make it ,if I click dropdown, show every elements but can only select top element others not. like this image, because I made tutorial. how can I restrict ...
Byungheon Lee's user avatar
0 votes
1 answer
636 views

I'd like to ask a case when developing a game using Unity. There are many UI elements in the game. These UI elements normally disappear from scenes when the purpose is achieved. However, the ...
Byungheon Lee's user avatar
0 votes
0 answers
142 views

I want to create a custom UI, specifically an action wheel which offers different actions depending on where or what was clicked. To do that, I create circle segments (slices). I also create a custom <...
ElDuderino's user avatar
0 votes
0 answers
98 views

Essentially I want to light all orange areas Tried changing the render mode on the canvas and rearranging the Image object in the canvas - nothing worked.
Alex's user avatar
  • 103
0 votes
0 answers
184 views

So this is the setting that is affecting my game. My game is a webgl build from unity running in chrome, hosted on itch.io. At 100% windows scaling setting, the UI elements have expected size,...
Utkrist Karkee's user avatar
0 votes
1 answer
147 views

I'm trying to implement readable books into my game. Much like Morrowind and Skyrim. I have a system that sort of works, but it appears as though there is a bug that is duplicating some page data, and ...
Krythic's user avatar
  • 800
0 votes
0 answers
212 views

I have the following situation, where in I need to animate textures on 3D animating plane in runtime. There are 5 panels in the unity scene and two buttons, each button, when clicked triggers one ...
Omkar P's user avatar
0 votes
1 answer
2k views

I'm using the new UI Toolkit and new Input System together, and I've setup everything correctly the Input Actions has separate input for UI, the Input System UI Input Module is setup correctly, the ...
Džoni's user avatar
  • 36
0 votes
2 answers
969 views

I'm creating a game in unity and I can't get the UI buttons to work. Here is what I tried: Added a graphics raycaster to the canvas Added an events system with an Input System UI Input Manager ...
FortCraftCoder's user avatar
0 votes
1 answer
494 views

So I'm trying to change the function of a button by a clickable method in Unity. I'm using a GetComponent to access the button component of the game object and then ...
curry girl's user avatar
0 votes
0 answers
89 views

I'm having an issue where my UI lags if I try to fill an image that is placed in front of another image. Here is the effect I am trying to achieve: As you can see I have an image in the background (...
Cato's user avatar
  • 103
0 votes
1 answer
272 views

I am instantiating a UI button. After it spawns if I hover on the button it highlights properly. The problem is if I spawn the button and the mouse position is already on top of the instantiated ...
theCodeHermit's user avatar
0 votes
1 answer
439 views

I'm trying to update the positions of vertices in my project. I'd been using Unity's built in Line Renderer previously which worked fine, but had some problems when points got too close to each other. ...
Mathias Algot Søllested's user avatar
0 votes
0 answers
657 views

I am passing a clip to play on the audio source. Next, I wait for the audio to finish to invoke the next action. But the waiting loop never ends. Once the audio clip ends, the time I read from ...
Manoj Balaji M's user avatar
0 votes
1 answer
348 views

Initial Question: I'm trying to create a minimap for my game in Unity. It consists of a 2D image sprite within a mask. I've got the rotation and the movement within the mask down, but the only problem ...
Sudsy's user avatar
  • 1
0 votes
0 answers
65 views

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 ...
Maiz's user avatar
  • 1
0 votes
2 answers
146 views

The pause menu is getting shown by default when I click the play button, even though the GameIsPaused boolean is set to false. I don't know if it's the fault of how ...
Nineteenn's user avatar
0 votes
1 answer
143 views

I am using Unity 2021.3.3f1 and trying to make a pop up with a sprite as a background, where the size of this sprite adjusts to the size necessary to fit the text. From what I understand, ...
ChrisC's user avatar
  • 116
0 votes
1 answer
1k views

I am attempting to draw a box around a selected target in my space game. I had this working fine using normal techniques when my canvas was set to Screen Space - Overlay. However my setup is that ship ...
David Burford's user avatar
0 votes
1 answer
226 views

I'm working on a point and click system in Unity and I have a contextual menu that appears when you right click on an object. In this menu, there's a button called "search" that moves the ...
pocketlint60's user avatar
0 votes
0 answers
270 views

There's an section of the documentation that refers to something that may be the answer, but unfortunately, if I keep holding with my finger the draggable object, even when I'm not moving my finger, ...
YoshGJ's user avatar
  • 535
0 votes
1 answer
853 views

I'm new to Unity and coding (C#), so sorry if this is a novice question. Is the OnDrop function only usable for UI elements? I am currently making an ARPG Card game ...
Michael Surs's user avatar
0 votes
1 answer
221 views

I have a simple mobile game where every time I touch the screen, the car changes direction. The thing is, I need to implement a pause button, but when I click pause I need the car to stay still and ...
Gabriel Ozzy's user avatar
0 votes
0 answers
779 views

I'm using UILineRenderer to draw curve of the map. The one thing I'm finding is that the drawing is pixelated despite adding more data points. setting the quality in game view to 4K UHD, and ...
ThePedestrian's user avatar
0 votes
0 answers
1k views

I'm trying to place a 3D object on top of a UI Image But nothing works. Can anyone give an example of how to add a 3d model on top of a UI Image in a 2d game. The strange thing is that I have all the ...
zeni1agent's user avatar
0 votes
1 answer
1k views

I have a main menu scene in which the buttons work using button component's animation transition. I created a simple animation for them that changes their vertex color to blue when selected. The ...
Ali's user avatar
  • 55
0 votes
0 answers
52 views

I read from the book that 0 - 7 layers are reserved layers in Unity but when I open layers on Unity its showing me that I can use layer-03, 6 and 7 and so on. So can I say that only 5 layers are ...
AHF's user avatar
  • 101
0 votes
0 answers
176 views

Trying to understand the Unity UI system. I have a panel that contains a button that should hide the panel. When I wire the button up to the method that hides the panel, I can see in the console that ...
arcadeperfect's user avatar
0 votes
0 answers
12 views

I'm trying to do simple card game. I want players to drag and drop cards from hand to table, from deck etc. The simplest and cleanest solution for drag and drop I found is to use Image object on ...
ostojan's user avatar
  • 101
0 votes
0 answers
189 views

Basically I have an image that represents a map where you go from one level to another. I was planning for this image to repeat it selfie while you go up thru the map to new levels( something like the ...
Ivan's user avatar
  • 379
0 votes
0 answers
193 views

I have a layer rendering issue, where the top layer of content will sometimes not render to screen as it appears that the bottom layer is rendering on top (even though it's behind in world space). It ...
A__'s user avatar
  • 163
0 votes
0 answers
80 views

is there a way to deserialize .unity and ProjectSettings file in binary format down to yaml? I provide an example of one of such ...
jackb's user avatar
  • 101
0 votes
1 answer
356 views

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 ...
riaan du toit's user avatar
0 votes
0 answers
98 views

Using UI Panel component is convenient in the sense that the panel will always be stretched to the size of the screen at any resolution, unlike a sprite (in simple mode) the size of which depends on ...
Serg's user avatar
  • 393
0 votes
1 answer
199 views

I am having trouble understanding how to trigger a UI button with a specific joystick key only. Currently i have a pause menu in which i have several buttons. By pressing start i set the game time ...
FSic's user avatar
  • 188