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
1 vote
1 answer
47 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
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
219 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
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
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
163 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
0 votes
0 answers
53 views

So i want to design an editor which has the following requirements. Suppose i already have a prefab called Player.prefab and script attached as Player.cs And have a scriptable object called ...
Aman's user avatar
  • 1
0 votes
0 answers
76 views

I have a game with several scenes, all loaded using addressables: A persistent scene that stays loaded with things like the main camera and certain common game systems. A lobby scene A game scene ...
Programmer9000'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
28 views

So i was following this tutorial https://youtu.be/lF26yGJbsQk to make a start button for my unity game. But some how the button is not working and don't know why?
Krushn-a's user avatar
0 votes
1 answer
50 views

I was making a game main menu by watching a video online. In that video, while setting the volume Slider, after adding the coded script in the On Value Changed section and selecting ...
Volkan AKDAG's user avatar
2 votes
2 answers
155 views

I would like to show race progress in my UI. My minimap is like sketch below: Blue dot represents progress and red dot is finish line. I would like this to work in UI so only blue dot would move. If ...
Ivan's user avatar
  • 379
0 votes
1 answer
133 views

I want to create a UI for a VR game to use it as a loading screen, the scene has a camera an image, a text mesh and a loading icon, the image is the background and the text and loading icon should be ...
Alejandro's user avatar
0 votes
2 answers
164 views

I am not sure if this is possible I have this image: This is how it looks when I do radial fill: My question is if there is a way to make edges rounded while filling the image. Rough sketch of what ...
Ivan's user avatar
  • 379
0 votes
0 answers
57 views

I am using simple shaders on the cards in my game. The shader is assigned as a material to a white image the covers the whole card. They render as intended in the scene view, but do not in IOS ...
Devin's user avatar
  • 1
0 votes
0 answers
71 views

Why is toggle group after default time in the default script execution order in Unity?
ina's user avatar
  • 294
2 votes
1 answer
480 views

I'm making the main menu for a small game I'm making, and when I was learning how to make buttons etc. In order to make the buttons have a sound effect when pressed and so on, I was told to add an ...
Kaiannae's user avatar
  • 123
0 votes
1 answer
96 views

I have attached a script (1) to the InputField for ease and it displays HA changing when I alter it during run time in the ...
Stan's user avatar
  • 3
0 votes
0 answers
35 views

For some reason a Unity UI Image that is set to stretch becomes tiled when assigned from Texture2D at runtime (?)
ina's user avatar
  • 294
0 votes
1 answer
189 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
242 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
93 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
333 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
1 answer
544 views

I've designed a game where, when a button is clicked, the moving point stops. If the button is clicked again, the moving point starts moving again. I only click on the button once, but the ...
Alisa's user avatar
  • 1
0 votes
2 answers
199 views

Currently, when loading from Appdata, there is a noticeable delay. See a sample video here, when it changes from the sprite set in UI to the sprite loaded from Appdata through C# script. I want to ...
Junjie J2's user avatar

1
2 3 4 5