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
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
-1 votes
1 answer
318 views

so in here there is a box to which i have attaches this script and ATTACH1 is a socket interactor here i want is when the box which i have attaches attaches to that socket interactor the text which is ...
SPP's user avatar
  • 1
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
1 answer
134 views

I am writing the code for my button, but it's giving me errors like this: Assets\Scripts\SteamIntegration.cs (60, 6): 'Button' is not an attribute class Where did I make a mistake in this code? <...
Syeda Aqsa Sakina's user avatar
0 votes
0 answers
119 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
148 views

Is it possible to arrange alternate children separately in a vertical layout group? I want to arrange the child elements so that one is aligned to the left, the next one is aligned to the right, and ...
fatdrogen's user avatar
  • 248
1 vote
2 answers
3k views

Been struggling with this one for a while. I've found a few other posts across Stack Exchange and the Unity forums that seem to have the same problem, but their solutions don't work for me (at least ...
rpatton583's user avatar
0 votes
1 answer
675 views

I recreated the problem in a new project to check and test the problem, but I don't understand it. Two scenes: First scene A GameObject with this script that simply jumps to the second scene. ...
Baro's user avatar
  • 81
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
1 answer
67 views

I have a UIManager meant to control the UI. The UI manager is attached to an empty game object. The Canvas has three panels, ...
Tim W Glass's user avatar
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
1 answer
310 views

I have a custom UI element and I would like to instantiate it from Hierarchy like you do with any other UI element (button, text etc.). I know how to do this so it is instantiated in the scene but how ...
Ivan's user avatar
  • 379
0 votes
1 answer
1k views

I've tried quite a few things, but none of them have worked reliably. Here is what I'm currently using: ...
THE JOATMON's user avatar
0 votes
1 answer
697 views

This happens to all particle systems. I tried: Changing the rendering mode to camera, setting culling mask to UI, particle system layer set to UI Adding a canvas child, and attaching a particle ...
Alex's user avatar
  • 103
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
457 views

In the latest Unity editor 2021.3.25f1 LTS, I'm trying to directly import the following package from github: https://github.com/yasirkula/UnityNativeFilePicker/releases/tag/v1.3.0 But when I import ...
tribbloid's user avatar
  • 131
0 votes
1 answer
135 views

I got the following question: How to show an image as Tooltip in a Unity3D? The image should only be visible if the user hovers over the 3d object. Thanks in advance, hidayah
Hidayah__0111'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
85 views

I have written a code that would create background image as a button and then show a letter on that button. This should become a virtual keyboard. I am experiencing weird drawing that looks like this: ...
tmighty's user avatar
  • 919
2 votes
1 answer
2k views

I created a custom UI Button: However, when I use the sprite as the image for a button it doesn't fill out the whole "Collision" area: This is an example of how I want it to fill the "...
Motcho's user avatar
  • 23
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
1 vote
4 answers
2k views

I'm trying to display file names including their directory. When the file path gets too long for the text box, I want to align it right, because the filename is more important than the directory. I ...
Frederik Steinmetz's user avatar
0 votes
2 answers
968 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
2k views

Currently, I am scrolling a UI RawImage using the following: ...
PayasoPrince's user avatar
1 vote
2 answers
243 views

I have a card game, where I'd like to be able to zoom in on a card if it's right clicked. I coded to make sure that if the zoomed card would go over a screen boundary, instead we would anchor it such ...
Steve P.'s user avatar
  • 123
0 votes
1 answer
1k views

I have a state machine responsible for transitioning between different images, corresponding to player actions. I want to make the image a part of UI, but my main question is how do I transition ...
koogel's user avatar
  • 79
0 votes
1 answer
74 views

I extended the Button class with my own variables. I also had to create an Editor script since Unity manually draws the Button's fields into the Inspector. I just need to know what the functions that ...
CraftedGaming's user avatar
0 votes
1 answer
493 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
1k views

I'm trying to create an endless runner type game where once the player dies, a popup opens letting the user know that the player can be saved by watching an ad. This is how the popup looks in the game ...
single arrow games's user avatar
1 vote
1 answer
1k views

I'm digging into Unity's new UI Toolkit, and so far I like it a lot; but there are a few things bugging me about it. I have a dynamic list in my UI which keeps track of way point paths, and it changes ...
Michael Macha's user avatar
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
3 votes
1 answer
1k views

I am a complete beginner in Unity and, after having search for a while, I am still not sure if it is actually possible to achieve what I would like to do. My goal is to have a game where the screen is ...
Federico Tomasi's user avatar
2 votes
2 answers
1k views

Image sprite is created programmatically _image.sprite = Sprite.Create(texture, ...); Should I destroy it before replacing with a new one? P.S. My question comes ...
Serg's user avatar
  • 393
0 votes
1 answer
143 views

I have a vertical layout group filled with UI buttons used as menus in my game. They work well for mousing over and clicking, and I am in the process of adding keyboard controls. The issue I have is ...
Hoog's user avatar
  • 121
1 vote
1 answer
350 views

My canvas scaler does not work when the UI is instantiated dynamically. It does work well in iPhone 6.5 inch simulator: The problem is when I use 5.5 inch or smaller simulator: It does not follow ...
stingalimian galimian'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
16 votes
1 answer
6k views

I am starting to work on optimization for my app. I need to understand the information Unity displays about file sizes. For example, just to prove a point, here is a 2.2 KB completely blank PNG which ...
mike's user avatar
  • 501
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
1 vote
0 answers
617 views

I am making a unity mobile game, I have a simple scene and a canvas with a few buttons and these buttons have scripts that detect if the button was pressed and released. Here is the code for doing ...
zmac's user avatar
  • 11
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
11 votes
1 answer
3k views

Here's what I want: Here's what I got: What is this procedural image unmasking called? Popcap didn't do image-splitting (source images below), but I feel like I'm missing the obvious here. (Source ...
x otikoruk x's user avatar