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

Problem with instantiate UI prefabs

When I instantiate prefab with RectTransform on it in most cases it works wrong. Usually ancoredPosition and deltaSize resets and I have to set it again from script. There are another bug that I think...

View Article


I can't get the preferredHeight of a text, the value just returns -1

I have a prefab that has a text component, a content size fitter, and a layout element. I instantiate the prefab and then fill the text field with some text. Then, I need to get the height of this text...

View Article


Creating a Custom Font from an Image

I'm fairly new to Unity and am trying to learn how to make a custom font. I made an image in Photoshop of the numbers 0-9 and saved it as a png. I then followed these instructions...

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

Applying material to a canvas group

Is it possible to apply material for all UI elements in the same hierarchy without assigning them one by one? if I have a complex hierarchy of UI and for example i want to grey out the whole UI using a...

View Article


Crash In QuartzCore

Hello All, We are occasionally seeing the following crash in iOS. We are using Unity 5.1.3P2 We could not figure out what is causing this. Somebody please point us to the right direction. Crashed:...

View Article

World Space Canvas Rendering Issues

Images that are children of a world space canvas are not sorted according to hierarchy when their z is 0. To test this out, change the change the order of the "bg" and "check" images repeatedly, it...

View Article

Crash In UIKit

Hi All, We are occasionally seeing the following crash in iOS. We are using Unity 5.1.3P2 We could not figure out what is causing this. Somebody please point us to the right direction. Fatal Exception:...

View Article


How to draw functions as 2D graphs?

Hi all, Iam looking for a way to draw linear, logistic, polynomial, (...) functions. View attachment 196016 What is the standart way to display these graphs in 2D? I want to change the paramters of the...

View Article


3D Objects inside Canvas

Inside my Canvas I'm trying to display a 3D model to depict which player's turn it is alongside some text. My canvas is set to Screen Space - Overlay. My 3D game object is displaying exactly how I want...

View Article

Texture Packer vs Sprite Packer for sprite in UI

Hi All, I don't know if it's better to use Texture Packer or Sprite Packer to reduce my draw calls. With texture packer I can control my atlas, but Sprite Packer is a little uncontrollable. When I put...

View Article

Help on UI Please???

Hi, my name is Tate. I am having an issue that I for some reason cannot fix - If I had a ring image in a canvas, and a bunch of circles inside the ring image, when I scale the ring to fit the canvas,...

View Article

Horizontal Layout gives a big spacing

Hello there ! I've been trying to create a UI from a script. In this case, I was looking for a way to instantiate a health bar for my character. For that, I wanted health points to superimpose...

View Article


Strange UI scaling in 5.4

I upgraded to 5.4 and noticed some of my UI buttons were suddenly huge and off the screen. After digging around for a while, it seems that as of 5.4 at least, if the canvas Z scale is 0, or the parent...

View Article

Unity 5.4 Android UI Masking Issue

Having an issue with the masking shader on android only partially masking the image of a horizontal scroller on the left side. As in image bellow, anybody else encountered this and know of a...

View Article


Different Colour Text In the same Box

Hello I'm trying to get certain text will be displayed as certain colours. Like for example I want Zombies in red. I have been able to accomplish this by making more than one text in UI and adding it...

View Article

EventSystem.RaycastAll doesn't work in Oculus Gear VR?

I just recently updated the Unity to 5.4, and using the native Unity VR mode, I didn't implement the Oculus Utility. eventSystem.RaycastAll worked in previous version, but once I updated to this...

View Article


Image may be NSFW.
Clik here to view.

UI Text not rendering good

Hello, I have a problem When I execute the game, my UI Text dissapear or render a strange symbols like this: What happen? :S Beafore don't happen this... Thanks for you help, Salute

View Article

Nested Canvases do not Save Anchoring Settings

1) What happened? Nested UI canvases do not seem to retain their anchoring settings (as set by the rect transform component) upon saving->reopening or hitting play. This bug is new as of either...

View Article

Disabling button by script

All the answers I found in google dated by 2015 and not working on my version of Unity, so how can I disable UI Canvas button by script to keep it visible, but not allowed to click?

View Article
Browsing all 23263 articles
Browse latest View live


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