UGUI Questions
3
Solved
Hello all,
I was wondering how possible it is to make a scroll list with a header at the top of the scroll list. The point of the header is essentially to act like a catergory or grouping for the scro...
Scaliger asked 22/5, 2013 at 13:55
6
Solved
Inside ScrollRect I have UI elements with Monobehaviour scripts which implement OnPointerDown() and OnPointerUp() methods. OnPointerDown() locks scrolling and OnPointerUp() unlocks it.
OnPointerDown()...
Acquire asked 15/10, 2015 at 7:17
2
Solved
I have a scenario where I have a variable number of buttons inside a container game object. To show these buttons, I’ve added a Grid Layout Group with a Fixed Column Count constraint of 2. I’ve adjust...
Starks asked 2/9, 2015 at 21:16
12
When I was building this UI, I didn’t realize that resizing by pressing T and dragging the windows, I would totally screw up the resolution of any image I was resizing, and only later did I realize I ...
Leitao asked 20/6, 2015 at 21:2
6
I’d love to know if there was a way to get my Line Renderer on a Canvas (or some other way to draw lines on a canvas)
Sitter asked 11/6, 2016 at 9:59
1
Solved
When I instantiate a UI prefab, the horizontal layout group in my UI does not seems to work. However, it only works with either of the followings:
When I enable Pixel Perfect in canvas
When I remove ...
Affect asked 9/1, 2020 at 14:26
2
I need to move a non-UI object in my scene to a the position of an object on the Canvas. Here is an illustration of what I am trying to do, the worldspace object to move along the red arrow to the UI ...
Morez asked 17/5, 2015 at 7:44
4
In my game the UI scales perfectly and fits the screen for all tested resolutions. No problem there.
But I need a background image for the UI that fills both width and height. Fitting an image to the ...
Raised asked 30/7, 2017 at 5:46
18
Solved
Hi There,
Im learning how to use Unity’s new UI features. Though I am encountering some very peculiar results.
I’m Designing a Main Menu Panel for a game, it worked fine earlier (and I have not touche...
Unclassified asked 29/1, 2015 at 22:0
2
Solved
Hi.
I have a canvas set up with a couple of children:
An image for the static background of my scene/level.
A panel which houses a drop down menu, (containing a grid of inventory objects).
The backg...
Sunshine asked 8/3, 2017 at 19:14
3
Solved
I have a pause button in my space shooter game. When I pause, then un-pause, every time I use the space bar to shoot, it triggers the pause button. Is this because the pause button stays focused after...
Conquistador asked 21/12, 2014 at 10:3
2
Hello, I am trying to type using Arabic in Text Mesh Pro and some characters are not showing up. I put the same characters in a normal text component (in the left side of the picture) and it worked. (...
Furthest asked 10/5, 2021 at 11:40
4
Hi, everyone! I am wondering if it is good to disable multitouch with new UI with this Input.multiTouchEnabled?
Could you please advice me, where it is better to execute this code?
Also, I am curious ...
Spread asked 16/1, 2015 at 7:27
4
Solved
Hi, I am working on a local co-op game where each user uses a different device and controls a different character. The game does not feature split-screen and only makes use of a single UI canvas, whic...
Urceolate asked 1/5, 2021 at 18:5
3
Solved
I am creating a 2D Space Invaders game and I want to be able to move the player’s ship side to side using “Left”/“Right” buttons (UI) i.e. run ‘this’ method as long as ‘this’ button is pressed.
I have...
Quadric asked 10/9, 2017 at 23:11
4
Hello,
How you can set text in TextMeshProUGUI to render vertically instead of horizontally? I cannot find any option to switch text orientation.
Cheers149025-vertical-text.png477×694 11.2 KB
Ascension asked 21/11, 2019 at 15:6
13
Solved
I tried the End Edit but it also submits when I click outside the inputField and I don’t want that.
I also tried the Event Trigger with type Submit but it doesn’t submit.
How can I submit an inputFiel...
Solley asked 8/12, 2014 at 18:5
2
So I have a Canvas with several elements on it and a 3D model (robot) which is not part of the canvas.
There is one camera in the scene so far and it is pointing at the robot. So when I run the game, ...
Fineness asked 19/1, 2017 at 19:57
7
I cannot understand why the string username is not equal with "a". Even if I enter the string "a" in the input field.
Can anyone help me?
using TMPro;
public class ButtonsScript : MonoBehaviour
{
pu...
Cyrilla asked 14/10, 2018 at 14:58
4
Solved
I’d like to register a callback to the OnPointerDown and OnPointerUp events of the UnityEngine.UI.Button(s) in my game to trigger two different sounds for down and up click. However, only the onClick ...
Anastaciaanastas asked 8/8, 2016 at 20:47
2
Solved
Hello all, for my game
I have a Canvas where the user can scroll through to select an item (using Scroll Rect). I have a collider in the center of the screen. The purpose of this collider is to detect...
Cahoon asked 13/10, 2016 at 19:50
3
Solved
There are 1 gameobject with onmousedown function and UI Button at my scene . When gameobject goes behind button and i need to click this button, function onmousedown of gameobject working too. How to ...
Clove asked 21/1, 2016 at 12:11
17
I have a screen space canvas and I simply want to move a “target” over an object in world space. My world space coordinate is obtained with a raycast and I do a debug draw to make sure it is correct. ...
Brickle asked 29/9, 2014 at 7:49
2
Solved
I wrote a custom shader for a floating health bar, world UI element, and noticed that setting properties on it was setting it for all objects using that material.
I found mentions of Renderer.SetPrope...
Craner asked 31/3, 2016 at 10:5
3
Hey guys, I’ve been trying to figure out how block clicks in my game scene with UI objects, but I’m running into problems.
I’ve set up this little debug code here
if( Input.GetMouseButtonDown(0) )
{
...
Toggle asked 17/3, 2016 at 17:29
1 Next >
© 2022 - 2025 — McMap. All rights reserved.