Adding an event trigger in C# is not working
Hi I'm trying to bind an event trigger at run time in c# Code (CSharp): EventTrigger off_trigger = Pad.GetComponent<EventTrigger>( ); EventTrigger.Entry off_entry = new...
View ArticleGaps in 1080p, but no gaps in 720p
I have a problem. I have a group of texts/labels and below it I have a group of buttons, in 1080p it's with a gap, and that's exactly what I want to happen, but when in 720p, the gap is gone and its...
View ArticleCanvas Group with Blocks Raycast Doesn't effect onMouseUp?
I've got a panel with a canvas group that has "blocks raycasts" selected but doesn't stop an onMouseUp event on a sprite's collider behind it. Is there another step I need to take to get raycasts to be...
View ArticleFocus on InputField Programmatically
I have an input field that's popping up and covering the screen, and it doesn't make sense to force the user to click on it, since they have to interact with it before I let them do anything else. Is...
View ArticleLevels changing with UI best practice
Hi! I have a game with many levels. Hovewer on each level I have the SAME UI (buttons bause, health, ect.). Here is some BEST practice to realize scene loading with UI saving? Levels as scenes? Or...
View ArticleNested ScrollRect can't work corretly.Need Help!
I‘ve made two ScrollRect blocks by UGUI. One as another's child. View attachment 191172 Now I want to do : 【When the "ScrollViewwithControl" slide endly(top or end), the "ScrollGroupView" slide follow...
View ArticleCanvas Components Scaling
I've added a UI components to my scene and it automatically created a canvas(as it should). When i add components such as buttons and panels to the canvas, it looks fine. But when i slide the re-sizing...
View ArticleSerious bug alert: 2D raycaster sorting 2d colliders based on their world...
View attachment 111154 1) What happened 2D raycaster sorting 2d box colliders and other colliders based on their world position instead of their sorting layers! 2) How can we reproduce it using the...
View ArticleEventsystem.update garbage generation
Hello I've been searching for answers on how to fix this issue but have not found anything that works. I have a menu that opens when clicking a turret (td game). Currently I am using buttons with...
View ArticleFree Script - Particle Systems in UI Screen Space Overlay
I haven't been too active in the Unity forums, but I am a professional dev who has been working with Unity for several years. I've recently been working with the superb new team at Section Studios in...
View ArticleRadial Slider (Circle Slider)
The new Unity UI is a great step forward indeed. But it lacks radial sliders (something like those here: http://anthonyterrien.com/knob/) Can you tell us here, if Unity brings this in a further release?
View ArticleCustom Radial Slider (UnityUI)
Hello, I have searched all over for a Radial Slider (Unity GUI) and have found none, so I have made my own Custom Radial Slider(s) which are also connected together (total values of all cannot go over...
View ArticleImage change on button press
So I've been following a tutorial and did a simple image change on button press. Here is the code: using UnityEngine; using System.Collections; using UnityEngine.UI; public class ProfilePicChange :...
View ArticleMain Menu
I need help creating a main menu, I have no idea how to begin. I want the main menu to preview the main scene where the game takes place but all guides and everything I have seen say to make a new...
View ArticleScroll view content's game object position
Hi, how to check which game object which is in content of scroll view is positioned at the center of the screen? Thanks in advance.
View Article[Solved] Instantiate UI kills framerate
Hello, I'm working on a fast-paced arena game with 4 players competing to reach the highest score. It is very important for player feedback that score text is displayed when a player does something...
View ArticleBackground Image in different game views
I have a Canvas. It's Canvas Scaler has a reference resolution of 1136 x 640, Match Width or Height and a 1 match. I've added an image in the canvas and set it's size to 1136 x 640. In different game...
View ArticleIs there a way to add events to the InputField.onSubmit Event Listener?
I've tried searching for the answer and it seems like it used to be an option but somewhere along the line Unity pulled it. Is it still possible?
View ArticleFind anchoredPosition of a RectTransform relative to another RectTransform
Hello, The thread title might look confusing, so let me make an example. EXAMPLE I have two RectTransforms, A and B. A has its anchor set to the top-left of the screen, B to the center. Now, I would...
View ArticleRenderTexture not working after building project
We kinda wanted to create a minimap for our game, and since we recently learnt about RenderTextures, we tried to use those. So we set up a Canvas and put a RawImage on it. We set up a camera over the...
View Article