Quantcast
Channel: UGUI & TextMesh Pro
Browsing all 23263 articles
Browse latest View live

callback function based on ID in list of buttons?

Hi, Is there a way to know which button is clicked when buttons are children of a parent? So, basically, I made a scrollable item list with buttons and I want to control behavior of the each callback...

View Article


Unity stops processing input after the second time I press play - Unity 5.1.2f1

This is strange - My gui works correctly the first time through. But after I stop and press play again - it displays, but I can no longer click on anything, and it doesn't even recognize a hover. I...

View Article


Background implementation with ui canvas.

Hello All, I want to implement background image in UI canvas (world space) so that background will not cut from sides of the screens.If anyone would like to share idea for the same then that would be...

View Article

What determines canvas render order?

When you have more than one Canvas in the scene, what determines which ones get drawn first? I am specifically referring to the Screen Space - Overlay mode, the other ones seem obvious.

View Article

Is there a way to ignore sorting by hierarchy?

In my hierarchy CandyItem has an Image component attached to it, so do CandySprite. I want CandySprite to be renderer on top of all CandyItems, not only the one it's parented to. Right now it seems...

View Article


Input Field doesn't keep focus when hardware keyboard is connected, iOS

The InputField doesn't appear to like iPad bluetooth keyboards. Is this a known issue? Is the behavior the same on Android? I can't seem to find any information anywhere. I've tested a new project...

View Article

5.3.1: canvas doesn't process mouse events on part of the screen (full screen...

I just filed bug #755480 for a bug with full screen mode in a multi-monitor setup. Parts of the canvas stop responding to mouse events, based on the *other* monitor's resolution. It's related to the...

View Article

Content scrolling off scrollrect

Hi, I have a scroll rect which have a grid layout with some buttons inside. The problem is that the content scrolls off the scroll rect limits and goes over the header.... What might happen? Thanks

View Article


UI is moving around when my character moves!

I am making a top-down 2d game. When the player character rotates, the UI (health bar) starts moving around as well. If my character moves up, the ui slowly moves to the top of the screen. How do I...

View Article


Scroll rect height with dynamic content

Hi, I have a scroll rect with some buttons on a grid layout group, the number of buttons is dynamic via c# script. How can I determine the bottom of the rect transform of the content?

View Article

Monospace Character Width

I'm making development console for my game. I use monospace font. I need width of a character in terms of its bounding quad. I need it to be able to set line lengths for various resolutions and aspect...

View Article

currentSelectedGameObject work only UI botton ?

if ( touch.phase == TouchPhase.Began) { if (EventSystem.current.currentSelectedGameObject.name == "button") { GameObject.Find("debug").GetComponent<Text>().text ="Button Clicked"; } } I try to...

View Article

Image may be NSFW.
Clik here to view.

UI Canvas UV tiling bug.

Hi, I just wanted to share a new Bug I found in Unity 5.3.4f1 and up... (Case 794711). It appears that when a custom material is used on a UI element any texture Tiling and Offset settings on the...

View Article


Sharpenning text

I think everyone knows the issue with unity where the text isn't sharp enough and looks blurry, usually to fix that you would grow the font size and then reduce the scale of the object, or vice versa...

View Article

UI Button not working as Prefab

Hi, I have the following issue: I have created a UI 'element' consisting of Panel, containing a Button and 3 Images. The Button itself has a Text, as it is by default. Everything is working great....

View Article


Way to disable this feature with Sliders?

I noticed you can move the slider if selected when you press the A and D keys. Is there a way to disable this? As it is kinda annoying..

View Article

Worldspace Canvas appears in editor not in Game.

Ok I've been working on this all day and I can't find anything on this. I have a screenspace overlay for my regular gui elements and I'm trying to create some worldspace elements to float around a...

View Article


Pivot point not moving on drag

I'm trying to move the pivot point of a UI object. The point does not move.

View Article

OnDrag problem

Hi I'm trying to drag items inside UI panel (inventory system). Methods for drag event: Code (CSharp):   public void OnBeginDrag(PointerEventData eventData)   {   itemBeingDragged = gameObject;...

View Article

Rich Text Length

I need length of a rich text string in terms of characters. How can I do it without manually stripping it of all tags?

View Article
Browsing all 23263 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>