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

IsPointerOverEventSystemObject always returns false on mobile

Calling IsPointerOverEventSystemObject works great in unity editor and standalone builds but on mobile devices (Android to be more specific) it always returns false. Is this a bug or am I missing...

View Article


Overdraw: SpriteRenderer in UI?

Question: Should i start writing UI-scaling-functions for the SpriteRenderer or will the Unity-UI get an update to support non-quad geometry at some point in the future? Background: I want to use big...

View Article


UI image memory on small devices

Hello, Quick question : How to make large ui images on scene (2048 for example) loaded in memory as smaller (1024 or 512) on devices with lower resolution. My images are set to Sprite (2D and UI),...

View Article

Issue: screenshots of GUI elements with rendertexture

I'm making a drawing / coloring app. I use uGui for stamp/sticker functionality. I'm trying to use a rendertexture to make a screenshot. But the GUI elements don't show up on the render texture. The...

View Article

UI appearing differently on different computers using the same aspect ratio

I am a developer on a game currently on Steam in Early Access and one of our players recently reported a bug with our game's UI that none of the developers have been able to replicate on our machines....

View Article


Alpha Blending UI Elements

I'm trying to do something that I think "just can't be done like this", but I thought I would ask anyway. I'm making a leather embossed look, and in Photoshop, the layers look like this: View...

View Article

Getting the world corners or bounds of a RectTransform and all it's hierarchy...

Hi devs, I've just encountered a situation where I need to calculate the width of a UI element and all its children (and children's children etc...) combined. Using the RectTransform's GetWorldCorners...

View Article

Limit Max Width of Layout Component?

Is there a way to set a Maximum width on a layout component? This would be useful to control how wide a given element can be to force word wrapping on text for instance. Example: Imagine a button with...

View Article


How to: text gradient fill?

I want to make similar effect we had in DF GUI, where text color can be gradient. I'm using custom material with build-in UI/Text shader, changing it to something like this: half4 frag (v2f i) : COLOR...

View Article


ScrollRect with Buttons

Hi! I have a ScrollRect with tons of button on it! But, when the Mouse Cursor is over a button, instead of over the background, the Dragging of the ScrollRect and the MouseWhell does not works. Is...

View Article

Image may be NSFW.
Clik here to view.

Please help me create dual joystick :((

Please help me create dual joystick, i can create 1 joystick but when i click to it, funtion gun active because t create to event getmousebutton, beside my joystick can move but it can't rotate around,...

View Article

How to create an in-game right click menu

I want to create an in-game right click menu. I want it to look like Windows right click menu. Also the buttons in the menu must be dynamically created since the menu will change with respect to...

View Article

Image may be NSFW.
Clik here to view.

[Unity UI] Keep Text in Image

Hello community, nice to meet you, I am using Unity UI. I have an image and the image is always at left-top. Now I want to have text on this image. My Text component is a child of the image. However I...

View Article


Performance fix in 5.2.3p2 (font rebuilding)

5.2.3p2 was released today, and in it's release notes, this line is mentioned: (735927) - UI: Fixed a performance issue with fonts rebuilding. Can anyone further elaborate on what this fix means, and...

View Article

Sluggish GUI - how to optimise?

I've a reasonably complex main menu and customisation UI with several panels layered and scroll views. I've packed all sprites with the sprite packing tag 'UI'. When run on a 2013 Nexus 7, the refresh...

View Article


score on collision

I am making a game for school project using unity 5 I want the player to score on collision, So if the player touch the coin it gives you 1 point to the score i have it working when the player touch...

View Article

Image may be NSFW.
Clik here to view.

Lag spike from SystemEvent with the first touch.

Hey there. I'm using Unity 4.6.6 for Android and iOS. I have a Physics Raycaster and Graphics Raycaster on my scene and implemented IDragHandler on multiple objects. There is at most a dozen of those...

View Article


Invalid AABB for InputField

I have what I believe to be a pretty basic UI I'm working on for a console. However when I added an InputField and positioned it at the relevant location for typing I get the above error output to the...

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

Scroll View Viewport not clipping Image elements with materials

Hi there, I am trying to make a scrollable list of color swatches. But I want some of them to be 'metallic' I can achieve this by adding a standard material to my swatch that has a 'spherical' normal...

View Article
Browsing all 23263 articles
Browse latest View live


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