Questions tagged [user-interface]
The user-interface tag has no usage guidance.
32 questions
1
vote
1
answer
61
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
28
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
33
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
33
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
33
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
150
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
237
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 ...
1
vote
2
answers
741
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
84
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
501
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
631
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
596
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
63
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 ...
0
votes
2
answers
942
views
Detect what object was dropped onto, rather than the object being dragged
I want to make a simple drag and drop system in 2D in Unity.
When the user drags the object to a position, I want to check if the position is valid. As in I want the user to drag an object onto ...
1
vote
1
answer
293
views
How to implement a simple Scrollbar
I'm making a simple UI system for a small game and i'm having some difficulty to implement a Scrollbar.
At the moment i'm having two major problems that i need some help to solve:
. Calculating the &...
1
vote
1
answer
1k
views
Detect when item has been dragged & dropped onto an inventory slot
In my inventory system I want to be able to drag and drop items into inventory slots.
I managed to make it work, but only in a weird way:
When the player starts dragging, it picks up the item and it ...
2
votes
1
answer
8k
views
Unity ScrollView not scrolling with Clamped or Elastic
I have a ScrollView object in my project. It is set to Clamped.
Inside the ViewPort, I have Content and what I actually want to scroll, a TextViewMesh. The Content has a Content Size Fitter, with its ...
1
vote
2
answers
600
views
Unity: How to work with forms
Today I learned some cool tricks about sizing containers and its children, I mainly using this, because I need to build some forms.
But now... It is some preffered way how to handle forms? Or some ...
1
vote
2
answers
986
views
Need help with using Player Prefs to save number of coins collected
I'm using unity 3D to make a game where the character collides with coins in order to collect them. When playing the game, the player should start out with zero coins and each time he collides with a ...
4
votes
0
answers
135
views
How to map interaction events to game actions
When I port between Desktop games and Mobile games, I find I always make a kludge out of the interaction events.
I typically end up hard-coding event handling for mobile, and event handling for the ...
0
votes
0
answers
141
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 ...
0
votes
2
answers
164
views
Examples of 3D space strategy with good XYZ controls?
I've been tinkering with an idea for a space sym, kind of like MOO2, writing it for mobile or browser as a way to learn Java. Command ships and control planets, etc. I'd love to make the game in 3d, ...
3
votes
2
answers
265
views
Best way to de-clutter name tags on units in RTS
This is an RTS-MMO mobile game I am building, Each unit has health-bar and name of the unit and owner on top of it and a small circle indicating if the unit is friendly and/or has weapons activated or ...
2
votes
1
answer
4k
views
Unity Placing a UI on top of Cinemachine
I have cinemachine set up. I just need to place the UI on top of it. I can easily manage to make the canvas appear when there's only the main camera alone. However with Cinemachine, it appears that ...
1
vote
0
answers
39
views
Scene for Computer Screen
We are developing a scene that will involve heavily interacting with a "touch screen monitor" in the scene.. Because the workflow of the touch screen will need to be dynamic we are creating a REST API ...
0
votes
1
answer
373
views
Why is this LIBGDX Action behavior THE EXACT OPPOSITE of what I expect?
Here is a code snippet of the relevant section in my render loop. My intention was to make the actor who was currently focused blinking, to indicate that it was the currently selected UI element. But ...
1
vote
3
answers
580
views
How to name HP/MP/Exp bars in a single word?
I have one question related to game design.
In my prototype game, I have an options when you can change look of your HPbar, MPbar and Expbar. Actually I don't know how to easily name this option.
...
0
votes
0
answers
33
views
Networking User Interface Buttons (build queue items)
I am creating a RTS with Unity/C#, and have noticed a problem synchronising build queues. Is there an ideal solution to handle button prediction?
I think I may have overengineered the solution... ...
1
vote
1
answer
36
views
How can I change displayed information as a physical control knob is slid along a track
I'm making an installation for exhibition or demonstration purpose.
I want to have a physical handle the viewer can slide along a track. As they do so, the information displayed on the screen should ...
4
votes
2
answers
110
views
Making various shapes equally difficult to tap
I'm developing a game where the player quickly has to tap/click on various shapes such as squares, circles, triangles, stars and so on. I'm now struggling with the following task: I'm searching for a ...