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

What happen when there are 2 scripts intercepting the same event?

Hi, This is something I never quite figure out: - For Buttons, I am able to add another monobehaviour that implements IPointerClickHandler, and intercept that OnPointerClick event (without affecting...

View Article


TextMesh Pro & Unity 2018.1

As per the title and assuming all goes well, a new version of TextMesh Pro will be included by default in Unity 2018.1. Most likely starting with Beta 2 or Beta 3. This new version of TMP will be made...

View Article


ContentSizeFitter makes scene dirty!?

I guess it is because it uses [ExecuteInEditor]? Is there any way around this? Is it a bug? Note: To replicate, must change horizontal or vertical to something other then (than?) unconstrained.

View Article

Apply global theme / skin to all default UI elements

Hi, I was wondering if there was a solution to customize Unity's default UI component. This is something that was possible with IMGUI System but I found no built-in solutions for Unity UI. It would be...

View Article

Expanding layout element to available size

I use Unity 2017.2.0p3. I have Horizontal Layout Group (Child Controls Size: Width & Height) with 2 children. 1st is Layout Element with Flexible Width = 1 and Flexible Height = 1. 2nd is Vertical...

View Article


Canvas scaler issue

Hi! I'm experimenting a strange issues when nesting canvas and canvas scaler... The thing is that I have some root canvas gameobjects with a canvas scaler. All of this canvas are to show the ui in...

View Article

Text Mesh Pro Font Asset keeps auto-changing

@Stephan_B Our Text Mesh Pro Font Assets keep showing up as changed in our source control. No one is touching the assets nor any TMP settings. It always has something to do with the...

View Article

Monospaced text using TMP_text.text

I am formatting time like this: _timerLabel.text = "<mspace=2.75em>" + Math.Floor(_stems[0].time).ToString(); The text needs to be monospaced, I was wondering if that was the only way? I made a...

View Article


RectTransform localPosition vs anchorPosition

Found out that RectTransform.localPosition doesn’t work anymore in 2017.3.1p2 if you need to position something in the UI RectTransform.anchoredPosition works to position something in the UI I like to...

View Article


Applying prefab changes changes RectTranform properties

I'm having a weird problem that when i apply changes on a prefab it will change the transform positions of some of the nested children. The problem only seems to happen to objects that are 3 or more...

View Article

My icon moves when player moves

I have a weird little bug (that is also kinda funny to watch) where I'm using event systems to drag an icon Image from one place to another, but if my character is moving while I am dragging the icon...

View Article

Image may be NSFW.
Clik here to view.

TextMesh Pro - Rendering Unicode Charachters

Hello, I am trying to render a user's name in a TMPro text but it doesn't render well. I tried doing the same in a regular Unity text and it worked. I read about creating custom fonts, etc. But in this...

View Article

DropDown doesnt close after selection

Whats up with that? Its funny that on the scene canvas rendering, it does close, but in the real Game Rendering screen, it just hangs open after selecting it I did try .Hide() but maybe out of place....

View Article


Font specified in Style tag not respecting correct font asset line height

Hey Stephan, firstly thanks for your dedication to this brilliant plugin! I've encountered a strange issue... I have multiple font assets and I'm using the Style Sheet to define styles like so:...

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


Garbage when changing outlineColor

I seem to be getting a little bit of garbage when I modify outlineColor. I am 'pulsating' some of my text, and in update() I'm lerping .color, .fontSize and .outlineColor like this: TheText.fontSize =...

View Article

Resizeable Elements in GridLayoutGroup

I'd like to create a 2D panel that contains a subpanel with a GridLayoutGroup in Unity 4.6 and it seems that the only current option is to specify the size of a GridLayoutGroup cell. Specifying a...

View Article


UI Drag and Drop System

Hi , I am trying to develop basic programming interface for children, as a beginner at Unity Engine I can't understand complicated scripts. Even I watched almost all tutorials about drag and drop...

View Article

Ability to add enum argument to button functions

A feature I would love to see is for buttons to be able to call functions with an enum type argument for instance... Code (csharp):   public enum type {   fire, water }   public void SetType(type t) {...

View Article

Applying prefab with inactive children and TMP element breaks layout

I'm facing a bug with UI + Text Mesh Pro where when i apply a prefab it will break layout settings only if i have UI gameobjects disabled. Attached is a sample project and here are the reproduction...

View Article
Browsing all 23263 articles
Browse latest View live


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