Adjustable 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 ArticleRectMask2D.PerformClipping generates garbage (5.4)
Testing in Unity 5.4.2p1 RectMask2D.PerformClipping generates garbage every frame. I can see that this change introduced foreach() in Unity 5.4:...
View ArticleMaintain textbox position in Scroll View
I have such a simple task: create a text box exactly like a chat application, where new text is appended to the bottom. When enough text is entered, a scrollbar becomes required to scroll up to older...
View ArticleAnimating Transitions of Panels Leaves Images of Previous Frames
I'm following the (very helpful) suggestions of the manual for transitioning between game menus. But when I run the transitions I see drawings from previous frames showing up. An example screenshot is...
View ArticleCanvas/camera settings for pixeled game
Hello, I'm making the UI for my 2D game and when I change resolution to test it, everything looks bad, blurried and not aligned. Right now my Canvas is set to "Scale with screen size", the ref res is...
View ArticleWhat exactly happens if you leave an Image's/Text's material to "None"?
Will it cause undefined behaviour, or will leaving it as "None" automatically set the proper material for me? I have done many projects before, and people tell me to just leave it as "None" and...
View ArticleUI Image after Build
I have an UI Image on the screen of my app when it is launched. When I run the app windowed it looks fine but if I run the app fullscreen the image goes dark. Anyone else experienced this and know of a...
View ArticleUI Toggle: Need Help
I'm trying to use a toggle to instantiate my player "Aim" animation. I have it set that when I click the toggle on that my aim animation is set. Yet, I don't know how to set it that when I click the...
View ArticleScrollview not stopping vertically if horiz unset
Hi, I'm getting troubles making scrollviews work. It won't stop scrolling vertically past the top or the bottom if I uncheck the horizontal scrolling checkbox, and keeping horiz ON is not an option....
View ArticleShould a Text/Image's material be "None"?
Will it cause undefined behaviour, or will leaving it as "None" automatically set the proper material for me? I have done many projects before, and people tell me to just leave it as "None" and...
View ArticleWhy doesn't Layout Element have Max values?
Why doesn't Layout Element have Max Width and Max Height? Without this, as far as I can tell, it is impossible to do a shrink-to-fit text box which wraps text (and expands the height) when a maximum...
View ArticleSelectables change so they don't select on click?
So a standard behavior of Selectables is that they are selected upon clicking. That's a behavior I don't like at all since then buttons keep stuck with the highlight for being selected, that should not...
View ArticleWhat does extents mean?
In the Text.GetGenerationSettings page (https://docs.unity3d.com/ScriptReference/UI.Text.GetGenerationSettings.html), what does "extents" mean for the Vector 2 parameter of the method?
View ArticleButton keeps spawn in middle
When I spawn in my button via Instantiate, the button keeps spawning in the middle of its parent background (Rect Transform + UI Image) I want it to spawn to the far right of the parent. Any hints?
View ArticlePhysics2DRaycaster and camera
Hi guys, I have a weird behavior with the Physics2DRaycaster attached to my main camera. My objects in the scene have a 2D collider attached and a script implementing IPointerClickHandler. When the...
View Article[Script] Simple script that automatically adjust anchor to GUI object size...
I have been playing around with the new GUI in 4.6. I have found out that there is no automation that allows the user to surround a GUI object (panel, button, etc.) with anchors on all sides. This...
View ArticleRadial UI layout in Unity, Code included
Hey everyone, I wanted to have a Radial Layout for something I'm working on and I thought the code might be useful to someone else. It's right here -...
View ArticleUI positions all broken after upgrade to Unity 5.4
We did using Unity 5.3.5. And upgrade to 5.4.2, all UI is broken and the position looks strange. Any idea?
View ArticleUnity 5.4.1 - SERIOUS !!!! Lug-Slow performance on Animating a Canvas UI with...
Hello, i am running in a serious problem testing with IOS device ,and this is it: I just created the Survival Shooting and when i went to create a slide effect of a Canvas containing only 1...
View ArticleThe best way to design and make an Age of Empires 2 esque UI
I am making an RTS game as a side project, to try to learn more about Unity, C# and in general 3D games. I have already made a side SHMUP project as well, to try out 2D, sprite interactions and so on....
View Article