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.

1 vote
1 answer
51 views

I have a prefab with some fixed sizes on itself and its elements: Then added a Aspect Ratio Fitter and a Preferred Height: . When using that prefab from a container with Horizontal Layout Group with ...
Henrique Pombo's user avatar
1 vote
1 answer
72 views

I am trying to make a digital clock (24:00 type), where each number is an individual image, that should change. So, I want to change sprites for multiple images in one piece of code. But when I ...
Ratty's user avatar
  • 13
0 votes
2 answers
86 views

I have this function that spawns an Icon from a world position and animates it to correct UI position. In editor it works fine but in apk on phone it has a wrong starting position. Now as I understand ...
Ivan's user avatar
  • 379
0 votes
1 answer
222 views

Here is what I want to achieve, health bars that stay perfectly above the units, regardless of where the unit moves or where the camera is: https://www.youtube.com/live/fZSaPDz-GJc?si=B868wwF5KAPCuEtw&...
Pascal Claes's user avatar
-1 votes
1 answer
70 views

In the editor, it does not matter if I set the resolution in the game view to my pc resolution (1920x1080) or to "Free Aspect". The only thing that changes is that in "Free Aspect",...
Daniel Lip's user avatar
  • 1,785
0 votes
2 answers
138 views

How can I highlight only specific parts of an image in Unity? My image would be something like the example below: a grid with text and fields. Text can be separated, but I would prefer it be part of ...
Ivan's user avatar
  • 379
0 votes
1 answer
164 views

I am placing a 3D game object with a SpriteRenderer + Billboard attached to it in my scene. However, since it's a distance away from a perspective camera, the sprite gets scaled, losing a lot of the ...
PayasoPrince's user avatar
3 votes
2 answers
1k views

As you may know, Unity can have issues correctly rendering transparent 2D Sprites/Textures exported from Photoshop or Figma. Reason being that most of these tools operate in Gamma color space while ...
Nenad Slavujevic's user avatar
0 votes
0 answers
50 views

I'm making UI that's using controller support, and therefore I have to script it and use an Animation, but how do I make sure that a color change when hovering over a button happens instantly, because ...
Hilmir Snær's user avatar
0 votes
0 answers
57 views

I'm developing a board game in Unity and facing an issue with image clarity. The board consists of multiple nodes, each displaying a 480x600 px image. However, these images appear blurry and ...
Sanchit Singhal's user avatar
1 vote
1 answer
283 views

I built my entire game in Unity based on my Android phone resolution, both for UI and object sizes. Now, everything looks good for a 1080 x 2400 resolution, but I know that's not the aspect ratio of ...
Usylom's user avatar
  • 31
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
1 answer
62 views

I am fairly new to Unity. I want to create a VR project that I build to WebXR and publish to the web. I am using the sample scene from this project and it helps me get up and running. I am able to ...
Bernie2436's user avatar
0 votes
1 answer
54 views

My Unity game has graphics designed for aspect ratios of 16:9, 16:10, 4:3, 3:2, and 19.5:9. This worked for mobile. But now I want to create a PC version for Steam, and I have to deal with the user ...
donut's user avatar
  • 111
1 vote
1 answer
2k views

for some pickable object, I display a UI canvas. It's attached to a scene gameObject. Sometimes the Canvas UI overlaps with some other objects. I need to make sure the UI is always renderer on top of ...
virtouso's user avatar
  • 2,680

15 30 50 per page
1
2 3 4 5
15