Questions tagged [unity-ui]

You use this tag to ask question related to Unity3d User Interface(UI) System. The Unity UI system allows you to create user interfaces fast and intuitively.

Unity's UI system provides game developers with tools for creating professional user interfaces, fast, intuitively and efficiently. With Unity UI, you can build simple screens for games—splash screens, level selection screens, or even high-score screens etc.

219 questions
1
vote
1 answer

Unity UI Builder Vector3 scaling issue

So for the past couple of days I've been trying out the new Unity UI Builder and I came across the following issue: Whenever you simply add a Vector3 field to the uxml and run the game the Vector3 field is scaled incorrectly. In the editor it looks…
unknown
  • 25
  • 6
1
vote
1 answer

Unity Rect Mask 2d overflow

image here I am using a Rect Mask 2d on a scroll bar area to hide elements outside the viewport of the scroll. And to an extent, this works. the UI element shown in red will not appear until the user scrolls down to it. However when a UI element is…
1
vote
1 answer

How to make responsive dropdown elements in Unity3d?

I heve some problems with making UI in Unity3d. I have a dropdown element with 5 DDN items. This is original structure of DDN. But on wide screen DDN items not responsive(2736x1824). This is on FreeAcpect screen. I want to make an elements…
1
vote
1 answer

In Unity UIElements, what is the equivalent to 'Scale with ScreenSize' of UGUI Canvas Scaler?

If I want to make my UI gameobjects stay the same size and position on all devices when I use UGUI in Unity3D, I simply set UI Scale Mode to Scale with Screen Size in Canvas Scaler. But now Unity3D switches to UIElements system, not only for Editor,…
solidcomer
  • 419
  • 6
  • 18
1
vote
2 answers

-Unity- providing feedback hints in order regardless of which wrong button was clicked

I'm an educational researcher developing a game for my doctoral program. I'm learning on the go with tutorials and forums. I have this scene with quiz panels (i.e., 4 buttons - 1 correct answer and 3 wrong ones) I would love to know how to provide…
Junior
  • 19
  • 4
1
vote
2 answers

Unity sprites are stretched on iPhone X

I have sprites for game ui/canvases and they are stretched on iPhone X view. When I scale for iPhone X, they become stretched on other iPhones.
1
vote
1 answer

Detect IPointerEnterHander On Nested UI Element

I have a card which has some icons on it. The card has an IPointerEnterHandler on it and it works fine and is called when the mouse enters the object. The card has a hidden button that covers the surface. The problem is, there are some nested…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
1
vote
1 answer

How do I hide the panel on my button click?

I'm working on the main menu for the game, where I have options to join or create a room. Under the Create button, I made an Advanced button which will open the advanced panel, giving the user more options, such as room size. I made the correct…
Rohan Shetty
  • 162
  • 1
  • 13
1
vote
2 answers

Restart Button Unity 3d C#

I am making a game. In my game, a ball is going around and if it hits a trap, it will die, and you will have to restart. My problem is: I can't figure out a way to make a button appear on the current scene when you hit the trap. Im scripting in…
Magnus
  • 91
  • 1
  • 2
  • 8
1
vote
1 answer

Columns/Magic Jewelry remake on Unity

I want to create a Magic Jewelry clone (Tetris + match 3) using Unity for mobile. So far, I've used UI elements such as UIImage, which serves as an individual block. I created a script that will give out random colors for the box. I then parented…
Dranreb
  • 313
  • 3
  • 11
1
vote
0 answers

How can I render placeholders inside text in unity to allow drag n drop on them

I want to render placeholder inside text to allow drag and drop behavior on those placeholders like this image What I want here is how to render this placeholder inside the text object, or even how to place them if the text length is not determined…
Mustafa Magdy
  • 1,230
  • 5
  • 28
  • 44
1
vote
1 answer

Why image has different pixel resolution in Hololens

I'm working on application, where small UI.Images are displayed with small textures 32x32 pixels. It is very important to display each pixel properly. When I'm trying to launch the application in Unity everything is perfect - Image consists of 32x32…
Addom34
  • 31
  • 7
1
vote
1 answer

How to properly use a player swipe length in pixels to move UI elements in Unity?

For a matter of optimization, I had to create a pooling list (acting as a scroll view) to reduce the number of gameobjects instantiated. This list use the draggable interfaces (IDragHandler, IBeginDragHandler, IEndDragHandler) to assess the player…
Nyakouai
  • 113
  • 2
  • 5
1
vote
1 answer

For Scale with screen size for canvas in unity3d, my sprites in Ui are pixelated when used for larger screens

For UI design in Unity, I am using Scale mode as Scale with screen Size. When I am using some image and render the UI on larger screens. Images are displayed as pixelated images. I read about and AssetBundle Variants and want to use them.But I have…
djkpA
  • 1,224
  • 2
  • 27
  • 57
1
vote
1 answer

Hot to decide which asset bundle varient of xxhdpi, xhdpi, hdpi, mdpi or ldpi should be picked in unity3d game to have decent UI with out pixelated?

While designing UI in unity. If I directly attach single mdpi image and text in different resolution the images/sprite are scaling as per screen size.But the problem is when the image is scaled its getting displayed as pixelated? So I read about…
djkpA
  • 1,224
  • 2
  • 27
  • 57