My UI's break sometimes

Like, firstly they move into a different place on the canvas permanently after testing, I assume it’s when the screen resizes it permanently changes it on the canvas for some reason… And another bug, is that my UI’s will not work. Like interactions are disabled for all my sliders and textbuttons. Unity has flawless physics and a 3D atmosphere, but they are weak in the UI department.

Wow. It did it again! The UI elements shifted off my canvas and now I have to reset it again… Tell me, why does Unity do this to me? Even Roblox Studio doesn’t do this, and trust me, I hate comparing the two! :frowning:

maybe you’re still on a older version, where there were a number of issues introduced?

i’m still working on kissUI in Unity 5.0.2
every version has some issues, but for me i feel, 5.0.2 has the least. :wink:

My friend insisted I was doing something wrong. But I highly doubt that. All I seriously did was test and then stop. Then I noticed a positioning difference on the canvas. I hope they release an update or something, cause this really ruins my UI’s instantly. I’m using 5.3.4 right now. I believe that’s the latest one.

Does your scene have an Event System in it? You must have an Event System in your Hierarchy for those objects to work. You can add one by selecting GameObject->UI->Event System. To fix your alignment issues select your Canvas in the Hierarchy and in the Inspector make sure your Canvas Scalers UI Scale Mode is set to “Scale With Screen Size”, then open your Player Settings (Edit->Project Settings->Player) and set your projects Supported Aspect Ratios to match the dimensions of your Canvas Scalers reference resolution.

Another good practice is to use Anchors to position UI elements, instead of directly modifying the Transform position to support multiple aspect ratios. Setting your Anchors all to 0 will always display that element in the bottom left corner of the Canvas, regardless of aspect ratio.

Hope that helps.

Oh thanks Zed! I will try these.