Flexible "grid" layout?
I want a layout controller capable of expanding its height based on its children. Basically like a text area works, but instead of words there would be child elements. So when adding elements (of...
View ArticleResizeable 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 ArticleFlexible/dynamically sized grids (like HTML tables)?
I've tried the GridLayout and it seems to want to create uniformly-sized elements. But what I want is to be able to pass in a bunch of rows of elements and have it layout the contents like a table,...
View ArticleCreate UIButton Programmatically
Hello i use this code for create uibutton GameObject canvas = new GameObject("canvas", typeof(RectTransform)); canvas.AddComponent<Canvas>(); canvas.AddComponent<GraphicRaycaster>();...
View ArticleUI Text Performance
I made development console using new UI. When it scrolls I repopulate a bunch of UI Text objects with new strings. Each text change takes 2ms! Changing 50 strings in a frame takes 100ms! This...
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 ArticleHow to position ScrollRect to another item?
I'm trying the 4.6 beta and I have a masked ScrollRect with buttons inside. Since I prefer using Gamepad I noticed that for some reason the ScrollRect fails to jump to the currently selected object....
View ArticleEnabling UI elements = Performance spike?
Hi, I've got a little UI test scene - a little performance test with 64 items in a ScrollRect, each item is an instance of a prefab, containing two UI.Image sprites (one regular, one sliced) and a very...
View ArticlePerformance issues on android with Scrollrect
Hello, I'm using the new ui to develop a chat system in my game. I want to have something like facebook app messenger. For now Im using a scrollrect with a vertical layout group, and I just push new...
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 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 ArticleNew UI text is useless for scaled pixel art games
So the new Beta has left me unequivocally screwed: My game is in 2D. It scales the artwork from a small size to a large size - this is pretty standard business for anything with pixel art. You either...
View ArticleCreate UIButton Programmatically
Hello i use this code for create uibutton GameObject canvas = new GameObject("canvas", typeof(RectTransform)); canvas.AddComponent<Canvas>(); canvas.AddComponent<GraphicRaycaster>();...
View ArticleUI Button arrange landscape and portrait
Hi attached image show a scene in landscape and portrait with All new high tech UI is any way to arrange those button ? -thanks View attachment 200077
View ArticleIsPointerOverGameObject - Ignoring Some Objects
In my voxel game, much like other voxel games, you use the mouse to add or delete blocks in the world. When the pause menu or other UI elements are on screen, I don't want the click (used for returning...
View ArticleAdjustable Character Spacing - free script
I was dismayed to find that the new 4.6 uGUI Text component supports line spacing, but not letter spacing. Especially since the later versions of NGUI had this option. I figured that when the UI source...
View Articleui button material are unvisible in the "game" window but visible in "scene...
i created material to textureing my button with image but the proplem is material are unvisible in the "game" window but visible in "scene window" so what's the wrong ? check my screenshot in attach files
View ArticleVirtual joystick not working
Hi there! A few months ago I worked on a project with a working virtual joystick. Now I work on a 2.0 of this project, so I duplicated it, changed a few things and the joystick is not working anymore....
View ArticleProblem With PlayerList using new UI [PUN]
Hell everyone well I seem to be having a big problem with making a playerlist for my lobby with the new UI. I was told not to use not to use the photonnetwork.Instantiate and just make an rpc call like...
View ArticleGUI element attached to a GameObject
Hi there! I have seen this question asked many times, unfortunately I am unable to find conclusive answers. All I am looking for is to have a uGUI element following a GameObject. Example: a Text...
View Article