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
0
votes
1 answer

Unity build not building game correctly

So when I tried to build my unity project the options menu did not build correctly. I tried two unity version, a hard restart of my system, and changing settings. Nothing corrected the issue. The game works fine in the unity editor but does not work…
0
votes
1 answer

How to use buttons without intercepting the game controls?

I have a mobile game where the only thing you have to do is to tap to jump,now i added a pause menu and when i click it the player still jumps,after i click on resume button the player also jumps and makes the game annoying How to fix? Code: public…
Nelu Belei
  • 37
  • 1
  • 6
0
votes
1 answer

Making an image button in Unity 2019.3.12f1

When I try to assign a source image to a Unity.UI button it always ends up blurry/distorted on the edges. I played with the resolution and some settings also tried with other images but it doesn't make a difference. the images I tried were png files…
maruf
  • 83
  • 1
  • 5
0
votes
1 answer

Screen Fades between scenes but the black screen remains when returning to Previous Scene

I'm sorry if the title and my explanation feel a bit off, English is not my native language. So I am making a 2d game for android and I have Several scenes like MainMenu, Level Selection, etc etc. I watched Brackeys transition video and did exactly…
Saad
  • 30
  • 8
0
votes
1 answer

Unity can't identify which button is beeing pressed

I've been trying to make the options in my game being selected by a keyboard input. I can highlight them, but I don't know how to make Unity identify which of the buttons is beeing pressed in order to do a certain action, it's giving me the…
AmanoSkullGZ
  • 141
  • 1
  • 1
  • 7
0
votes
1 answer

Unity: add different scroll speeds in UI Scroll Rect

In Unity, I created a UI Scroll Rect Object. This object has two children, a Button Handler with different Buttons, and a Background. Using it, both the Buttons and the Background are scrolling at the same speed. I want the Buttons to scroll faster…
LWun
  • 71
  • 1
  • 11
0
votes
1 answer

Physical Camera Viewport should adjust with the UI for different resolution

I have a physical camera in the scene which renders a 3D Scene. The 3D Scene is rendered between the Top UI Bar and the Bottom UI Bar and has been set properly for reference resolution 720 x 1280. So, the problem is when the resolution changes, the…
0
votes
1 answer

How to see caret when big ENTER pressed in InputField in unity3d?

I have a strange behaviour when using original InputField. My problem is next. I have 2 ENTER button on keyboard. The first is BIG ENTER(1), the second NUM PAD ENTER(2). I place original unity InputField( or InputField Text Mesh Pro the same…
0
votes
1 answer

How do i create a scrollable mask on a static image in Unity?

Lets say i have a canvas with a panel containing a plain white image. Hidden by mentioned panel, there is a panel with a coloured image on it. Now lets take a scrollrect, fill it with some smaller panels as content, add a mask to each of those,…
0
votes
1 answer

Why might a Unity button stop working when X position is not 0?

I'm pretty new to Unity. I have a button that works perfectly in the editor. When I build it and run on Windows or Mac, the button stops working. Other buttons on the same canvas work fine. If I recreate the button from scratch and then build after…
0
votes
1 answer

Unity: Change UI gameObject parent and position without moving Child gameObject

I have a UI in Unity where I constantly move items from one place to another. Some of said items are containers, and I decided to give each containers their own child gameObject representing and containing the actual container's content once opened…
raiskader
  • 89
  • 4
  • 16
0
votes
1 answer

Unity: UI.Button Adding OnClick Event From Script Fails

In my application I have a list of GameObject's, and I'm creating a button for each GameObject in the list via code. The problem is that when I add and onClick Event via code nothing shows up in the button onClick list, nothing happens when I click…
Gregor Sattel
  • 352
  • 3
  • 12
0
votes
1 answer

Why can't I update value of Unity Text in my function?

I am trying to display error messages according to what type of error occurs. For that, I have a public variable "errorMessage" which is attached to UI Text in the inspector. I am able to change the text value in start function but can't seem to…
Aiman Khan
  • 21
  • 1
  • 2
0
votes
0 answers

For some reason I cant see the overrides option in the inspector section of my object

So what im trying to make right now is a mobile game while following a tutorial on how to do so. I've already encountered a problem which is the fact that I can't see prefabs and overrides options in the inspector section of my player(the sheep).…
0
votes
1 answer

Unable to Instantiate UI Object in Unity

I'm trying to instantiate an object in Unity whenever a function is called. This is the start Method in my UiHandler script public void Start() { GameObject obj = Instantiate(userPanelPrefab, userPanelContainer) as GameObject; } And this is…
ostpol
  • 1
  • 1
  • 3