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

Should I use multiple parallel scenes?

I am working on a desktop app based on unity, lets say it looks like a video editor. I am thinking of using one scene for the preview window and another for the whole UI around it so later I can reuse the preview scene for another application that…
Dev-kun
  • 59
  • 5
0
votes
0 answers

Remove Keyboard Input Field Unity

At present I am getting this kind of keyboards for providing input in Android and iOS platforms. Please see below image: I mean Input Field remain attached with keyboard for preview purpose. I want to remove this. For this purpose, I gone through…
Siddharth
  • 4,142
  • 9
  • 44
  • 90
0
votes
1 answer

Unity wrong instance of class is being called on click. Creating my own input manager.

I am making my own InputManager to remap keys during the game. The problem is that I have assigned class to each of shortcut's parent and when the button is pressed on the debugger I can see data from another key. And only this key keeps being…
Bubiec
  • 363
  • 2
  • 10
0
votes
0 answers

Stop a raycast from going through the UI button

How do I stop a RayCast from going through a UI Button and hitting the collider behind the button? Some things I tried: The collider covers the entire view, but it is located on (0,0,2) The button is on (0,0,-5), so in front of the collider from…
Fabio S.
  • 460
  • 7
  • 22
0
votes
2 answers

How to display each player's score [Network Manager]

I am working on simple multiplayer (2-player so far) game based on built-in Network Manager (based on this great tutorial https://unity3d.com/learn/tutorials/s/multiplayer-networking) and I have absolutely no idea how to solve my problem. Every…
Jay Double
  • 57
  • 8
0
votes
3 answers

Spawn image at random position in canvas

I have a canvas and inside it a panel. I want to spawn different image UI object at random position inside my panel (on screen). I took x and y min and max limits of the panel in order to generate a random position (withing these limts) but the…
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
-1
votes
1 answer

How to change a sprite (ui.image.sprite) and delete the previous one from RAM

I need to take a screenshot of the screen and put it as a sprite in the image component. I do it with this code: public Texture2D TakeScreenshot() { Texture2D texture = new Texture2D(Screen.width, Screen.height, TextureFormat.RGBA32,…
Dityfort
  • 1
  • 1
-1
votes
0 answers

Unity TouchScreenKeyboard blocks GUI buttons

When a user selects(touches) an InputField it brings the TouchScreenKeyboard up. But while the keyboard is open, users can not press any GIU buttons. If the touch is outside the keyboard area, it closes the keyboard but does not click on the…
-1
votes
3 answers

Vertically scrollable UI with children that stretch to width

I am trying to create a vertically scrollable UI element that stretches horizontally, with children that also stretch horizontally. The children are instantiated prefabs. The prefab root object is set to TOP STRETCH but when it is instantiated it…
-1
votes
1 answer

Why isn't a Unity Canvas loading?

I tried to change it to Canvas, but it's still not going to the next scene/canvas. I already added the RoomList in the building settings but still not going there. It's not reaching the StartCoroutine(LoadNextSceneWithDelay(3f)); Debug.Log("Login…
Swain
  • 1
-1
votes
1 answer

Memory Card Puzzle In Unity Giving Me An Error After Clicking A Button(Fix?)

I'm making a memory puzzle in unity, but I get an error when I click on a button. It is supposed to show me an image that is tied to the button, then I click another button. If it is the same thing, the buttons disappear, and if they don't they…
-1
votes
1 answer

Unity - UI is in different location in build than in the editor

I have UI of a gun that I keep in the right-bottom of the screen, and properly stays there when i run in edit mode, but for some reason when i build it, it snaps to the left side. I have the UI set to scale with screen size and 1920x1080 as the…
-1
votes
1 answer

Spawned Unity UI Grid Layout child object is not correct size

I am using unity grid layout component but not working correctly. I am using unity grid layout component grid layout values. When I drag and drop my prefab as a child of grid layout object is perfectly normal working: normal but when I use this code…
-1
votes
2 answers

I'm trying to destroy a button once it is clicked

I have a section of my game where I have to click a button to load the next scene. I'm trying to make it so that when any single button is clicked it can no longer be clicked again, since you will be revisiting the same scene later in the game. (It…
-1
votes
2 answers

Can a Unity UI button move or destroy itself on press

I'm trying to start my game with none of the systems in place and the only thing on the screen is some background objects and the BUTTON. when I press the button, I want to instantiate all the objects that I need in the game.(which i know how to…