UGUI Image with polygon sprites
For anyone may interested: I've just finished Image with polygon mode. More information can be found in https://www.codeandweb.com/blog/2015/09/21/optimizing-unity-sprite-meshes However, unity just...
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 ArticleToggle Button Bug?
Hi, I'm observing a strange behaviour with the toggle button (Unity4.6b18). I can activate a toggle button with toggle.isOn = true but never deactivate it again. toggle.isOn = false just has no effect....
View ArticleInflate a text like a balloon
Hello all, I would like inflate my score like a balloon. Increase the scale property doesn't give me the effect. I don't know if make a text mesh and modify vertices via script is the good solution?...
View ArticleButtons not visible on panel
Hi everyone, In my scene I have a scrollbutton panel with a left panel that stretches top to bottom with a child panel that has a mask and an empty object as child that is a parent to buttons that move...
View ArticleChanging aspect ratio
Hey guys I am working on creating a menu, and I need to set it up in a way so it fits to mulitple aspect ratios. Like it does in most video games. Althouh, I cannot find any real information about...
View ArticleButton stacked under another one is hearing the onrelease (on mobile only)...
Hi, So this is my problem : - My two buttons are at the exact same position. - Button A is in a invisible (setactive(false)) state - Button B is visible and when clicked, it's destroyed and A become...
View ArticleOnPointerEnter problem in unity 5.3.0 and 5.3.1
Hi guys, I'm making virtual button for my unity game in android and I believe this is an issue in 5.3.0 and its not repaired in 5.3.1 but its working well in 5.2.x script is like this Code (CSharp):...
View ArticleOnRectTransformDimensionsChange not called if Canvas NOT PixelPerfect?
I was working on a UI element that can be dragged around by other devs while not in play mode. Whenever the element is moved, some code needs to be called. For this, I wanted to use the...
View ArticleFound a weird behaviour while anchoring gameobjects from a script
Why is it that when I anchor a gameobject to the left side, it works only when I parent the GO to the panel AFTER I set an anchorposition of the Object and when I want to anchor a gameobject to the...
View Article[solved] Two event triggers ain't working at the same time!
I have two buttons on my UI.... I attached event trigger and associated methods to call for "OnPointerUp" and "OnPointerDown" events to both of them.... Now these methods get called whenever I put my...
View ArticleGetting under cursor Canvas Panel object
Is it possible to get the under the cursor object without using the box collider? In the screenshot below i want to grap the background pannel on click, but only if there are no other elements...
View ArticlePointerEventData has no object information
I'm really confused about the information that's suppose to be stored in the PointerEventData for Pointer events. When I trace them out, rawPointerPress, selectedObject, and pointerPress are all null....
View ArticleUnityEngine.UI.dll is in timestamps but is not known in assetdatabase
I'm using beta 19 on Windows and still quite constantly get the error "Asset 'C:/Program Files (x86)/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/4.6.0/UnityEngine.UI.dll' is in timestamps but is...
View ArticleInputField ArgumentOutOfRangeException
Sometimes, when typing in an InputField I get an ArgumentOutOfRangeException error. It only happens when starting with an uppercase letter. I cannot reproduce it in an empty project, so I assume I am...
View ArticleFull Screen Animation on Main Menu is bouncing on iOS
So I have been having an issue for the last couple of days and it is driving me absolutely off the wall. I am building a mobile game for both Android and iOS, one of the things we have is an animation...
View ArticleAssigning functions to event triggers at runtime
Has anyone figured out how to do that in code yet? i.e. I would like to generate a UI element at runtime, and assign a function on another gameobject to its OnClick event. How exactly would I go about...
View ArticleGridLayout creating elements underneath dynamically, dealing with UI scaling.
Okay just a little setup on whats going on. I have a canvas scaler set to a reference resolution of 1920x1080, and a script running on a panel that will dynamically place the amount of boxes into the...
View ArticleUse any font as a monospace font
Hello ! Did anyone found how to do it ? It would be nice for displaying scores and stuff like that. I couldn't find the option anywhere so I downloaded the UI source code from bitbucket but it seems...
View Article