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

since unity 5.5, scrollbars can't be disabled anymore, when they are linked...

Is this kind of a new "feature"? We have our own functionality for scroll areas, that hides (disables) the scrollbars, when the vertical scroll content fits in the scroll area. then the content takes...

View Article


UI not interactible with multiple displays after upgrading to 5.5

Hello, I have a scene where I have a VR camera rig which is "display 1" and another camera which can be used to follow and look at the camera rig on "display 2". I had a UI which allowed a user to...

View Article


Location of UI element changes its appearance.

View attachment 211171 View attachment 211172 I created a .png with white edges and a transparent body which acts as a border for all my UI elements, but I've noticed that the border of each element...

View Article

Image may be NSFW.
Clik here to view.

Help to create a chat history

Hello everybody. I have been working on the creation of the chat history. I came to the fact that the "Text" can not contain very many characters, so I have to do my system for storing history. I...

View Article

How do you get the parent canvas?

Is there a simple way to get the parent canvas of a UI element? Because for functions like: Code (CSharp):...

View Article


World position to local RectTransform position ?

Hi guys, I'm trying to dynamically set an UI Image over and world object - to do that I'm using the following method : Code (CSharp): void WorldToScreenLocalPos(Transform worldTransform,RectTransform...

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

Vertical/Horizontal Layout Group

I have encountered a couple of issues in 5.5.0f3 with the vertical and horizontal layout groups. It appears that a new feature has been added to these elements - Child Control Size - this appears to be...

View Article


Image may be NSFW.
Clik here to view.

Masked UI Element's Shader Not Updating

I have a custom shader I am trying to use on a UI Image element. When the element is rendered by itself, the shader works fine. If I make the UI Image a child of an object with a mask, the shader...

View Article


Image may be NSFW.
Clik here to view.

How To Set ScrollRect.NormalizedPosition And Continue Existing Inertia

I'm using a ScrollRect where I have to change the size of the ScrollRect.Viewport.GetComponent.rect.height at some points. This will adjust the ScrollRect.NormalizedPosition and at times mess with the...

View Article

Drag a Slider while having pointer down on another object

I have a hidden slider object. When you press and hold on an image the slider appears righter above the image, when you let go the slider disappears. I want to trigger the drage event of the slider...

View Article

Displaying a 3D Object in Canvas - Overlay

Maybe in my Items Menu, I'd like to have a rotating display of a 3D Item, and I'd like to have it in the Canvas object itself so it isn't covered by anything (i.e. water, trees, etc.) When I do this,...

View Article

Disable or filter to layers touches / mouse clicks etc

I was hoping that the beta 20 release notes of: UI: Allow users to enable / disable navigation on a global level (including submit / cancel keys). See: EventSystem.current.sendNavigationEvents meant...

View Article


"Rect" of button shows wildly different X,Y coordinates in build

When I run the game in editor doing: button.GetComponent<RectTransform>().rect give me what appear to be "valid" coordinates for the X/Y coordinates of the button (something like 71, 22)....

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


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

Moving between Inputfields with Arrow Keys or max characters

I'm working on trying to move my typing cursor between different input fields. I have a rough idea about how it would work in C#: GameObject to hold Inputfields InputField1 InputField2 InputfField3 In...

View Article


[5.2] MaskableGraphic performance OnEnable(), OnDisable()

Hey folks. Our UI has seen some major spikes since upgrading to 5.2 from two functions - MaskableGraphic.OnEnable() and MaskableGraphic.OnDisable(), both coming in at a whopping 51ms. There is also a...

View Article

GetComponent of disabled object

I know that GetComponent (including GetComponentInChildren, GetComponentInParent in 4.6) only return active objects. Is there a way to get one inactive component without using GetComponents(true)[0] to...

View Article

UI creation only using code?

Hello there! So I am running across a little bit of an issue. I'm making a game which relies heavily on text and menu navigation. As much as I hate unity; people on Reddit always say that I will have...

View Article
Browsing all 23263 articles
Browse latest View live


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