UI.Text - how can I check for line wrapping?
I'm making a text box fill up character by character, how can I check to see if the next word I'm adding to the text is going to be wrapped to the next line? I tried just adding the next word all at...
View Article[5.3] Rotation of UI elements not working
Hi ! I have a problem when I animate Ui elements directly in Unity. Every time I put rotation values in the animation view on multiple keyframes, and then play the animation, all of the rotation...
View ArticleAbility to add enum argument to button functions
A feature I would love to see is for buttons to be able to call functions with an enum type argument for instance... Code (csharp): public enum type { fire, water } public void SetType(type t) {...
View ArticleAdditional camera eating events
I have a render2texture camera child of the main camera, only the main camera has physics raycaster. The render2texture camera has a depth of -10, the main camera -1 Yet no pointer event reaches the...
View ArticleSprite - Icons with text (e.g. emoticons)
Hi, it seems that one feature we use from NGUI is missing: To have special markup in the font gets replaced by custom icons. We use this to display things like resource symbols in tooltip flow-text...
View ArticleAlpha channel is not working for images on Android with ETC1 split alpha channel
Just ran into this trying to get my game working on android. Turns out that there is no way to get an alpha channel with compression on android (that is native for every GPU at least). I had to switch...
View ArticleUNITY UI Scroll through items one by one
Hi, I'm wondering how can i make a scroll rect to stop on each item when dragging. I have all working great with the standard elastic movement, but i want to drag the list, and stop on the first item...
View ArticleÙnity 5.3 Bitbucket release?
When is the code source for the 5.3 UI going to be released on Bitbucket? We have extended previous versions to support multiple selection of UI elements and I will need to extend the new version as...
View Article[SOLVED] RectMask2D and ScrollRect update
I have a ScrollRect with a viewport that contains a RectMask2D. The content of the ScrollRect has a list of children, expanding beyond the viewport (so they get culled by the RectMask2D). I remove the...
View ArticleHow to play a video in Unity
This is a script I created after not being able to get any working ones from here. So I will just post it here, because I'm not going to use it anymore: Code (CSharp): using UnityEngine; using...
View Articlemy UI extension got Rejected. Now what!!?? :P
Hi All, I was hoping to get some help from others trying to publish UI stuff to the Asset Store. Was hoping to find the reasons behind my extension not PASSing. I thought it would Make It in the...
View Article[5.2] Terrible performance spike causing by Font cache
[Unity 5.2.3p2 seems to fix the problem, thanks Unity !] Hi again, I'm continue to port my project in Unity 5.2 I notice a terrible game freeze when open my UIs, due to "Font.CacheFontForText", which...
View ArticleHow does everyone go about prefabbing their UIs?
Hey, I'm getting to the point in my project where I'm almost ready to start building multiple levels, which means I need some way of moving the UI around to each individual level. However, unlike a...
View ArticleLayout Group in Unity 5.3
After update to 5.3 issue was happen when orientation change. It appears on iOS and Android, but not in Editor. I have some window with layout group: Behaviour on device: What could be the problem?...
View ArticleMixing 3D characters in a 2D interface
I'd like to use the 3D models for icons, parenting the 3d models under the canvas and changing their layer to UI shows up in screen space - camera mode but not in screen space - overlay which makes...
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 ArticleMasked 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 ArticleHere's a editor script to help you create a custom font
I tried to find an easy way to use custom font in unity yesterday but couldn't find any, so I create a editor script to quickly map the texture. It's not using the obsolete uv & rect so you can...
View ArticleColor Picker
I created a color picker for anyone to use. GitHub Repo View attachment 111810 Should be really easy to use. Just add the prefab to the canvas, hook up an even, and it's good to go. Code (CSharp):...
View Article[Android] UI Worldspace buttons?
Seems like just using the Button component doesn't work. I made an ISelectable interface and it seemed to work until I had heavily nested objects in scrollviews or whatever and it doesn't work. Anyway,...
View Article