Questions tagged [user-interface]
The user-interface tag has no summary.
32 questions
1
vote
1
answer
151
views
How to prioritize and display correct UI for multiple actions triggered by the same input?
In my Unity game, the "Interact" action is used for multiple tasks like opening doors and grabbing/dropping objects. However, there are scenarios where the player has an object in their ...
0
votes
0
answers
69
views
XR Hands - Mesh Trigger
I like the XR Hands visualizer, but I'm wondering if I can just use the mesh from the hands as a trigger when they collide with an object. Is this possible? I tried it without success. I just want ...
0
votes
1
answer
63
views
How do I capture Button Events in Unity?
When making a game menu, how do I hook into "OnSelect"/"OnDeselect"/"OnHighlight"/etc with custom callbacks?
The Button MonoBehaviour doesn't seem to allow subscribing to ...
1
vote
1
answer
52
views
Add Item for OptionsButton is Gone from the editor
When i added in a optionbutton for my hud i couldnt find a way to add items manually,this was weird as when i looked for a way,a button on top of the editor should appear but its not there?
I dont ...
1
vote
0
answers
46
views
Differentiate Generic Tromino or Tetramino Match vs Specific Shape (Square, Line, L, ect..) in Match-3
This is primarily a user interface question related to match-3 games and visualizing a goal for the player using clear imagery.
I'm interested in having a match-3 game where if you get certain matches ...
1
vote
1
answer
214
views
How to fix Unity UI Panel Image being replaced with an "X"?
In my Unity Game, the Image on my UI Panel got replaced with an "X" instead of the Image it is supposed to be, I tried adding a different image to the panel and making a new panel, but it ...
0
votes
1
answer
303
views
Buttons' hitboxes shift a bit lower when I maximize my game window
I have a simple scene in my Unity 3d project. There is a Canvas (UI Scale Mode in Canvas Scaler is set to Constant Pixel Size but the same is with Scale with screen size), Panel inside it (Stretched ...
2
votes
2
answers
901
views
How can I right-align elements in Unity's UI Toolkit scroll view?
I've tried a basic google search and am still having trouble with this one.
Unity encourages the use of UI Toolkit at this point, as opposed to their old system, so that's what I'm going with; I have ...
0
votes
1
answer
1k
views
UI not scaling properly
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 ...
1
vote
1
answer
105
views
How to get vertices array from UIElements Label class (using reflection)?
I am trying to access the per letter vertices array in the UIElements (UI Toolkit) Label Unity class.
Background
A Label of this type can be created for example with:
...
0
votes
1
answer
543
views
Argument out of Range Exception on click of button that calls a function that doesn't use an index
Currently writing a script that builds a HUD for testing some functions in a project. It automatically builds buttons, one of which works, while the other gives the error indicated in the title and ...
0
votes
1
answer
685
views
UI quality drops when changing canvas resolution in Unity
I am making a game for android using unity. The problem is that the resolution of the UI drops drastically when the canvas resolution is changed(for testing purposes).
Joystick(UI component) with ...
2
votes
1
answer
671
views
Is it possible to hide deprecated assets in Unity?
I'm specifically referring to the package manager.
Unity is aware, even in the editor, of which assets are declared deprecated, as it allows me to filter my results to only show the deprecated ...
0
votes
0
answers
113
views
How to indicate players they should click to continue?
My game is entirely based on single click/touch interactions. In the screenshot, the player has just clicked the toolbox and the message "My toolbox - I better pick it up." appeared.
I want ...
0
votes
1
answer
2k
views
Does setting the alpha of a UI canvas group to 0 stop Unity from wasting resources rendering it? Is this a valid optimization for off screen UI?
I am trying to improve the efficiency of a big UI Scroll View in my Unity app. These Scroll Views tend to be inefficient and can be prone to jittery/stuttering motion if they are taxed.
I came across ...