Author Topic: Auto-resize the widget's box collider  (Read 2520 times)


  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 22
    • View Profile
Auto-resize the widget's box collider
« on: November 16, 2013, 02:54:58 PM »

I was wondering where I can find more information about the new feature to "auto-resize the widget's box collider". It sounds very interesting, as I have a problem that relates to this.

My problem is with panels that are disabled at the start of my game. When enabled in-game, their colliders do not automatically resize to the size of the sprites on the buttons. I am using RetinaPro's script that makes these colliders switch to the correct size, however this creates a visual pop that interferes with my Tweens.


  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Auto-resize the widget's box collider
« Reply #1 on: November 16, 2013, 08:20:49 PM »
If a widget has a collider, you will see this option. When enabled, the widget's box collider's dimensions will always envelop the widget.

Remember, any game object can have a UIWidget script on it. UIWidget is just a region, it doesn't need to draw anything, and doesn't have to be an actual visible widget like a sprite or a label.