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

Image may be NSFW.
Clik here to view.

Text randomly corrupts. Any idea why?

So I'm creating a Unity interface, and this is happening at random times. Sometimes the text looks fucked up, some other times it completely dissappears, and some others it's fine. Restarting unity...

View Article


Linking data to UI elements

Hi! What are some methods for keeping your UI information updated? The obvious way is to hardcode every ui piece to fetch and display the proper information. Then there is more MVVM etc. style approach...

View Article


Instantiate prefab as child (ListElement) is instatiaded in the wrong size

Hey, I'm creatig a Highscoreboard for a mobile game. The scoreboard is basicly a list that is populated with prefabs. A submit-button lets the player add his current score & name to the...

View Article

Extending Toggle Component

Due to my requirements and feasibility, i have to extend the Toggle component. I want to change Toggle label Text property to be changed from Toggle component. For this i used this Code (CSharp):...

View Article

Why doesn't Layout Element have Max values?

Why doesn't Layout Element have Max Width and Max Height? Without this, as far as I can tell, it is impossible to do a shrink-to-fit text box which wraps text (and expands the height) when a maximum...

View Article


(Case 763427) Multiline Text object cutting off last line of text

Echoing a bug I filed with the Unity Bug Reporter here to see if anyone's experienced it and/or has workarounds or solutions. In Unity 5.3.1f1 & 5.3.1p3, there appears to be an issue with Text...

View Article

Mouse Position for Screen Space - Camera?

Lets say i want a UI.Image to follow the mouse, in a "Screen Space - Overlay" canvas i can do it as easy as Image.transform=Input.mousePosition; in a LateUpdate. But how to do the exact same thing for...

View Article

Change the Value of a Toggle without triggering OnValueChanged?

Can You change the value of a toggle without having it call it's OnValueChanged functions? When the user presses the toggle i need some code to happen but sometimes i need to change the Active state of...

View Article


Where can I find alot of indepth tutorials on managing UI elements and...

I have been dreadfully confused when it comes to working with canvas elements. I dont understand the whole set up. I am trying hard to but would like to see how others are working in UI fields/images...

View Article


OnGui to Unity Canvas

Hello All, I have a question that i cant find a answer to: I have script that calls OnGui and I want to show through a test component on a Unity Canvas, However i have no clue where to start. The pause...

View Article

Image may be NSFW.
Clik here to view.

Panel UI takes up the whole screen briefly, and it's annoying. How to fix...

Here's a GIF showing the brief yellow flash: The Tooltip UI is a yellow Panel UI that you saw flashing briefly. In the slow-mo part of the GIF, you can see it quickly takes up the entire screen. How do...

View Article

Unity 5.3 UI Bugs

I do not like to update the version of the large number of bugs that make Unity. But I need to do and build UWP no choice. After upgrading from 5.1 to 5.3 I have received a lot of mistakes Unity. 1)...

View Article

What's the best practice for moving RectTransforms in Script?

Final testing revealed MASSIVE performance hits from Tweening my UI controls. Profiling (Unity Pro) showed this was a result of setting the tranforms position: MyCoolUIGameObject.transform.position =...

View Article


Pass input through all overlapping controls

Hi! I've searched this forum (and google in general) a lot, but couldn't find the answer. I have a control (a custom "button") that is controlled by a script and basically just checks for OnPointerDown...

View Article

How to use Bitmap Fonts in new UI text with best fit?

Hi! I need to use some Bitmap Font using the new UI text but i can't. I know that are several plugins that can do it but i don't want to spend any money. I found a script online:...

View Article


Scroll Rect is TOOO SLOW

Hi guys, I have a scroll rect inside a canvas with only 15 scrollable items. But it is giving me an fps of 30-40 on my mac and 10-20 on my android device. Any ideas how to fix this ? The UI is pretty...

View Article

Unity 5 UI source code not available in bitbucket

Hi, When will the UI source code for Unity 5 be available? At the moment we have fixes for Unity UI that we cannot use in Unity 5. Thanks, Jorge

View Article


Give Dropdown List capture / control of the arrow keys

Sorry if this is a duplicate, been searching all afternoon for a solution. I'm trying to navigate a UI screen without the mouse (keyboard only). My UI screen consists of a few input fields and two...

View Article

Image.material.mainTextureOffset seems to do nothing

Setting Image's texture offset seems to do nothing in Unity 5.3: xxx.GetComponent<Image>().material.mainTextureOffset=newVector2(0f,Time.time*3f); Wonder if the mainTextureOffset actually works...

View Article

UI works correctly only if screen is already being touched somewhere [ANDROID]

Hi, I have tracked down a weird problem: When my game is exported to Android devices (tested on LG G3 and samsung S3) most of the time when game is lauched, all UI buttons or gameobjects with...

View Article
Browsing all 23263 articles
Browse latest View live