How to add non-persistent UnityAction with a single parameter to a button's...
Title. As far as I can tell this is impossible since I am unallowed to pass a typed UnityAction to the AddListener method in OnClick, and I'm not allowed to replace OnClick with my own extended...
View ArticleHow do you do what GUITextures used to do?
It used to be that you could select an image and go GameObject>GUITexture and the image would be native size in the editor. How do you do that now? Thanks
View ArticleHow to disable (hide) UI elements without disabling them
Hi I have an issue where I want to hide certain elements without actually disabling them. So if I have a toggle that turns another UI element on and off, how can I achieve this without changing the...
View Article[5.2] Button Color Tint not working properly? -> BUG with linear lighting
Hi! I'm having a bit of trouble setting up the color tinting for my spankin' new button: View attachment 155598 As you can see above, the background is a pure white image (FFFFFF) and the "Normal...
View ArticleText Horizontal Overflow "Truncate"?
I need to truncate the text to its container horizontally, but I see no option for that. One solution, while is not available, could be to cut the string. How can I get the width of the text and its...
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 ArticleCan't drag in "Graphic Target" What even is it?
I want a button to change color when the mouse is hovering over it but it needs a target graphic. Every time I try to drag in my text object, it won't let me put it in the box. How can I solve this?
View ArticleiOS UI Performance
i have very strange issue with ui performance on iOS devices. i have a canvas and a scroll view. scroll view content contains around 10 elements (mainly buttons and labels). it works really well and...
View ArticleSelective UI Masking
Is there a way to selectively mask a child Image of a Mask -- using layers or otherwise? We have an Image inside a ScrollRect that occasionally needs to tween outside of the parent Mask, and I was...
View ArticleWhat's the best practice for moving RectTransforms in Script?
Final testing revealed MASSIVE performance hits from Tweening my UI controls. Profiling (Unity Pro) showed this was a result of setting the tranforms position: MyCoolUIGameObject.transform.position =...
View ArticleCustom UI Shader - Refresh?
I've made a custom UI shader that I use in a material, and it works great. The problem is that unity seems to render this thing once, and not again even though properties of this material change. Is...
View ArticleReplacing objects in new scenes???
Hello, I was wondering if Unity has a feature where IF an object has a 'DontDestroyOnLoad()' constraint on it and a new scene loads, and the new scene has an object of the same name or same tag, the...
View ArticleDynamically sized scroll-able list. Need some help here!
Alright, guys! I'll try to explain to my best ability. What I am trying to do: I am trying to make a horizontal scroll-able list of images that all have the same size (1024x1024px). This list contains...
View ArticleArgumentOutOfRangeException
HELP PLEASE; The scene work. but if i add text on formulary i get a error: ArgumentOutOfRangeException: Argument is out of range. Parameter name: index...
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 ArticlePerformance spike on Canvas.SendWillRenderCanvases when moving a panel
Hi, I'm having performance problems moving a panel in my UI. I'm moving the panel with a Coroutine that updates the anchoredPosition. The panel has a lot of childrens (a scrollable object with some...
View ArticleMarkers above game objects (e. g. enemy hitpoints)
Which would be the best way to create a hitpoint bar or a nickname label or whatever above another GameObject, so that the font is never shown in a weird perspective towards the camera and retains a...
View ArticleProblems with dark scenes.
Hello, I am having a problem with Unity where one of my scenes has so many jobs, that it is literally tying up my processor and is slowing down my computer to a point where I can hardly do anything...
View Article[5.2] Issue ID 724455: Child Canvas does not move together with parent canvas
This bug is present in 5.2.0f2 through 5.2.1p3. The workarounds listed in the comments for the issue tracker do not work for us. This blocks our ability to use 5.2. Is it fixed in 5.2.2?...
View ArticleButtons within scroll rect are difficult to press on mobile
I have a scroll rect which presents a grid of icon buttons. On desktop the buttons are easy to click, on mobile (android) the buttons are difficult to press. When I tap them It seems that only the...
View Article