Laggy ugui scrollview
I have been commented from my customer about laggy scrollview when scroll up down compare with other application. It is happen all device (ios, android). I have tried to find forum about this problem...
View ArticleHow to change the image sprite through script?
I created an empty game object, and I added an image as its child. And I want to change that child (image) by writing script, how can I do it? This is my code: Code (csharp): Â using UnityEngine; using...
View ArticleImportant UI tools for perfect design
I want to know about all essential UI tools to make a perfect design.
View ArticleMain Menu Buttons Not Changing Colour
I am trying to prove to a couple of friends that I can make a game by myself, but the buttons I am using on the home menu (Start, Quit, etc) aren't changing colours when I hover over them with my...
View ArticleScroll 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 ArticleHorizontal layout with dynamic text
Hello, I have a Panel containing Text and Image : View attachment 193826 Rendering : View attachment 193825 What the solution for the image resizing when the text length changing ? View attachment...
View ArticleAdding a force impulse via powerbar (slider)
Hi there, i want to dive deeper into unity. my knowledge in scripting and UI-Stuff is very low, so i am asking the wonderfull unity-community. My problem contains, as mentioned above, UI-Stuff and...
View ArticleConverting UI Element location (x,y) and size (height, width) to pixels
Hi there, Lets suppose i have a screen.height/width of 1300/800. Now i use a fullscreen canvas, then add a panel in the centre, now i need its location and size according to screen pixels. so lets say...
View ArticleDynamic ScrollRect howto
I'm trying to dynamically add a UI prefab to a scrollrect and I've seem to encounter every issue possible in doing so. Documentation is scarce and vague. Suggestions I found on the forum don't help. I...
View ArticleFont rendering change - Text no longer sharp (Unity 5.4.0f3)
This is the default Arial font that you can't change options for. ---- 5.4.0b15 ---------- 5.4.0f3 View attachment 193875 View attachment 193876
View ArticleUneven letters in a text box
Hello forum, here's what's happening to me today... I've created a text box in my UI (typical Text (Script) on a Rect Transform). The font is Unity's default Arial, size 18, normal, line spacing 1, no...
View ArticleHorizontal Layout Groups and preserving aspect
I want to put several rectangular shaped buttons in a Horizontal Layout group so they can be auto-resized when the group is resized, but I also want to preserve their aspect ratio. "Preserve Aspect"...
View ArticleUI flickers and disappears, but only after build
Hello forum, I'm coding a 2D RPG, and I just finished the basic UI (menu, inventory and dialog box) that works great when tested with Unity. But once the project is built, the UI flickers 2 or 3...
View ArticlePerformance of new UI
Hi, we are having significant performance drop while using the new UI and we are wondering if that's how it should perform or is it something that we are doing wrong. We are developing 3d racing game....
View ArticleNeed help with the UI
Hello, I'm trying Unity and I'm getting stuck. I have a UI which I want to persist over several scenes. The main scene has the canvas. I then load another scene aka level. I created a level manager...
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 ArticleCode Snippet: Size RawImage to Parent, keep aspect ratio.
Here's a handy little script I came up with, so you can tell any RawImage to fill it's parent's Rect, while maintaining the aspect ratio of the src texture. It also supports %-based padding, and images...
View ArticleUnity UI Screenshots
Hi! Are you making something cool with the new UI? We would love to see the kind of things you are creating with the beta. This gives us an idea about what you are using it for, and helps us focus our...
View ArticleLocalposition doesnt work
Someone knows why when i use transform/recttransform.localposition/position in the start void in the script it doesnt work? I use this to change the bitons position depending of the gamemode
View ArticleRect Mask 2D + Animation + Text = flicker?
So I have scrolling tips on a window. The tips scroll off the left and onto the right. The tips are Texts. So I put a Rect Mask 2D and the tips are children of this. So when the one scrolls off to the...
View Article