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

BaseInputModule's FindFirstRaycast only finds the first hit in raycast...

Hey there- I am developing a world space UI with a custom BaseInputModule. All my UI elements are placed in various Z depths, and some of them on the same canvas as each other. The problem is that the...

View Article


How to scale & move a RectTransforms so that it match exactly another...

I want to be able to warp a RectTransforms so that it match another RectTransforms regardless of hierarchy position. Here my code Code (CSharp): public void ScaleToRectTransform (RectTransform {...

View Article


Possible to offset pointer position - PointerEventData

I have a drag and drop system on ios, and I drag icons onto slots. I have quite a lot of slots, and it is a bit hard to hit the right one because the finger covers the slot, and the icon. I can offset...

View Article

Where is CanvasGroup Source?

Hi All I'v been searching CanvasGroup.cs at https://bitbucket.org/Unity-Technologies/ui/ But I can't find it there. Where is CanvasGroup Source? I want to know how to controll graphics alpha in...

View Article

Trouble with anchored Position

Code (CSharp):     row = 0; counter = -1;             if (ASuitedCardsList.Count > 0) {             for(int i = 0; i < 1;  i++)    {                 for(int j = 0; j < totalSuitedA; j++){...

View Article


Image may be NSFW.
Clik here to view.

Masking below a given UI element

Hi all, I've got something I've been toying with for a few days but I've hit a roadblock with it. What I want to do is hide the long straight rope, behind the rope knot. The rope knot moves along the...

View Article

Bug? gameobject.SetActive() not always working

I have a script that shows mainframe and 1 child frame. It then has button that switches to second child belonging to same mainframe. But occasionally when i show mainframe, none of the child frames...

View Article

Is this a bug when use an Outline and a Shadow component at the same time?

1.Only add an Outline component to a Text , the total vertexes count is 5n,(5=1(Text)+4(Outline), n is the vertexes count of a simple text). 2.Only add an Shadow component to a Text , the total...

View Article


Anyone run into the issue of having to hover mouse over Window before UWP app...

Hello everyone, I'm new to game development and Unity. Last night I noticed that when I build and run my game as a Windows 10 Universal App it isn't responsive unless I first move my mouse around in...

View Article


Unity DropDown UI - Select/Deselect option inside a dropdown via C# script

Hi everyone! I am trying to implement a piece of code that selects/deselects options inside a dropdown via script. I already know how to capture a dropdown selection via mouse click using an...

View Article

How to remove new UI Canvas border?

How to remove new UI Canvas border? I have water underneath and it reflects the border of canvas. There is no option to remove it.

View Article

[5.2] Caret missing in InputField (even in the default one)

The caret is always missing in our InputFields since the update to Unity 5.2. The caret object is still created by the InputField and contains the usual Canvas Renderer and Layout Element components,...

View Article

Scale and position child image uniform with parent image

I'm creating a health and mana bar component in my game. The component consists of three images: background health fill image mana fill image I'm trying to do something I thought the new UI would...

View Article


Can the scrollrect performance issue even be fixed?

So the issue is well known, some Unity devs have stated the performance is a priority. But I am really wondering, can it even be fixed? If I understand it correctly, using the scroll rects basically...

View Article

Unity 4.6 RC2 ToggleGroup.ActiveToggles() issue

Ok, I have a toggle group with 3 toggles under it. Now through code in OnEnable() of the UI, i check for Active Toggles. But the problem is it gives me the active toggle only when the first Toggle is...

View Article


Esc Key Issue with Input Field

In part of my project, I gave the player the option to bring up a notepad and take notes. If you press the Escape Key to pause the game while your notepad is still open, everything you just wrote is...

View Article

Buttons within scroll rect are difficult to press on mobile

I have a scroll rect which presents a grid of icon buttons. On desktop the buttons are easy to click, on mobile (android) the buttons are difficult to press. When I tap them It seems that only the...

View Article


Image may be NSFW.
Clik here to view.

Nested Scrollrect?

I'm hoping to put together a Netflix-like interface for users to select the scenes in my project. I need to be able to scroll up and down overall, but also be able to scroll rows of buttons left and...

View Article

Canvas localScale (0,0,0) & lossyScale (0,0,0) problem

Hi everyone! I have a little problem with the scale in the UI. I have a canvas and i need to instantiate some image in it, but all image are (0,0,0) in scale after the instantiation. I have print the...

View Article

[Unity 5] Very dangerous problem of uGUI which can make your game fps...

Simply create a new scene, choose GameObject / UI / Button to create a button of uGUI. Then choose Windows / Profiler, turn on Record. On Overview window, click the title of column named 'GC Alloc' (...

View Article
Browsing all 23263 articles
Browse latest View live


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