Nerd For Tech
Published in

Nerd For Tech

Fixing a Bug in my App

I am working on an insurance app with many UI elements. One UI element that is essential to the app working is the buttons. I had a bug where I could only click the sides of the buttons and not the middle.

I initially thought it had something to do with the text on the button so I tried turning off the raycast target for the text.

This did not fix the problem. I also realized that I did not have this problem on the menu panel. I then thought it might have something to do with panels interacting and blocking each other. I tried disabling the panels once the app was done with it.

This also did not solve the problem. The next thing I tried was starting the app from the panel that it goes to after clicking the first button.

Starting from this panel fixed the problem. Now I needed to figure out why. I realized that I forgot to enable the border panel that goes with this panel. Once I enabled it the problem came back.

Now I know the problem has something to do with the border panel. After looking at it for a couple of minutes I realized that the hitbox for the logo of the border extended down over the buttons.

After pulling the hitbox up and making sure it was not covering anything the buttons worked.




NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit

Recommended from Medium

DreamMaker Metaverse Update III: Bone-binding 3D Avatar

Smart Cities

The Origins of my Passion for Design

Designing Feminist Chatbots to Tackle Online Abuse

Design Practice

Can privately-owned public spaces (POPS) answer Mumbai’s post-pandemic public space rationing?

The image shows a bird’s eye view of a highway, a park, a small water body with a walking track around it.

5 Reasons Why Construction Document Management Makes for More Successful Projects

The Simplest Illustration of Design Thinking You’ll Find Out There

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matthew Clark

Matthew Clark

Unity Game Developer and C# Programmer

More from Medium

Day 106: Create a Roll system.

Virtual Cameras w/ Cinemachine in Unity 2020 — Part 2

Creating A Timed Run Challenge In Unity

Working with Unity Ads