Unity UI Rect Buttoms with styles
Hello i need ask u how i can add buttom like this picture. u can see on the image 3 buttons but raycast if u press to one the ignore the other example if u clic on the green area u get the function in...
View ArticleUnlit UI Panels - Scripting Control
Hi all, I'm trying to create a UI panel that alternates between pure black and pure white every frame, and is unaffected by lighting, so the actual displayed pixels will always have RGBA values of (0,...
View ArticleHow to Position Markers at an Interval on a Slider
I'm trying to place UI Image markers on a Slider to give the appearance of a slideshow timeline. Here is what I'm trying to achieve: View attachment 179037 What I need is for the black markers to be...
View ArticleCrossPlatformInput Mobile Joystick cant Enable
Hey! I am having a problem with the CrossPlatformInput Mobile Joystick where whenever I click on the checkbox to enable it, it won't enable it at all. The thing is, I had it working fine earlier. It...
View ArticleUI text disappears in Editor after switching to another app and returning to...
In Unity 5.1.0f3 on OS X 10.9.5, if I switch away from Unity to another application then return to Unity, all text in UI elements will disappear (sometimes immediately, sometimes after half a second or...
View ArticleUI Text disappears when alt-tabbing away from Unity Editor
I've been seeing basically the exact same behavior reported in this Linux support thread (which was confirmed by UT), but I'm seeing it on Windows:...
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 Article4.6 uGUI Mobile - Touch Button not working.
I have a button that starts the game. In the editor it works fine -- click it changes color and starts the game (loads new scene). On mobile it changes color when selected/clicked but stays in the...
View ArticleHelp with creating textures for UI that will scale on device screen size and...
Hello all I was wondering if anyone knew of any tutorials or would be able to quickly tell me the best way to create UI textures in photoshop. What are the general rules when designing UI graphics? (eg...
View ArticleUnity UI Best Practices
I spent a lot of time reading these forums, forum/net searches, etc. just to find out what information I could on the new UI and how to do it because I don't see an actual 'best practices' thread...
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 Article"in game" ui VS "main menu" ui
Just wondering how the two differ in development? My main menu UI is a scene with its own camera, canvas, panels..etc.. On "load level" button, it loads the player/level scene. How would one approach...
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[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 deal with pixels?
There is a simply test: And as you can see in some cases even whole lines being washed out of screen. In this example i used a camera space canvas with scaling set to 1920 1080 and match to 0.5 (match...
View ArticleUI: Changing UI elements' hierarchy when OnPointerDown
Hi guys i am working on my final project and stucked on ui oprations. I made couple draggable panels and its dragging well actually.In C# forum apps if we have 2 forms and we click on one of them, that...
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 ArticleToggle belong to multiple ToggleGroups?
At the moment I have 2 togglegroups each containing a toggle "left" and a toggle "right". I'd like to achieve that if in togglegroup1, the "left" toggle is on, the "right" toggle in togglegroup2 is...
View ArticleUnity stops processing input after the second time I press play - Unity 5.1.2f1
This is strange - My gui works correctly the first time through. But after I stop and press play again - it displays, but I can no longer click on anything, and it doesn't even recognize a hover. I...
View Article