- Home /
(4.6) Unity UI not blocking world.
Is there any way to make UI elements in 4.6 block world collisions?
I've even tried attaching box colliders to the UI element itself but that seems to do nothing.
Answer by ThomLaurent · Sep 29, 2014 at 01:42 AM
UI elements are designed to be 1 pixel = 1 unity's unit, thus I don't think you would want such a huge collider for a tiny scene.
So two solutions :
Increase your scene's scale to match UI's scale (200 times should be enough)
Create a small collider (but it's not a good fix if you want to rotate or scale the UI element. Your collider shouldn't move as expected via camera' sight)
Answer by Kiwasi · Sep 29, 2014 at 02:08 AM
Consider making a GameObject with the appropriate colliders, then adding a world space canvas.
That's right this solution is by far the best, here is a tutorial on canvas
Your answer
Follow this Question
Related Questions
Block OnMouse~ whith UI 0 Answers
9 Sliced Image Is Bleeding Edges 0 Answers
Push a UI-Element away with another 1 Answer
Creating an AOE with a UI Filled Image 0 Answers
unity 4.6 button functions? 1 Answer