Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Meltdown on July 23, 2015, 09:43:10 PM

Title: Why does the collider on the Simple Textbox prefab always reset itself?
Post by: Meltdown on July 23, 2015, 09:43:10 PM
I'm using 3.9.0
I have a simple scene with a Panel, I drag the Control - Simple Text Box prefab from the Examples folder onto the panel.

If I adjust the collider on the TextBox prefab, either through adjusting the center or size values, or adjusting it with the edit collider button, as soon as I press play, the collider resets itself to the original position/size.

No matter what i try I cannot adjust it.

Any idea why this happens?

I've also tried breaking the prefab instance from the object, no luck.
Title: Re: Why does the collider on the Simple Textbox prefab always reset itself?
Post by: devomage on July 24, 2015, 01:11:10 AM
use the widget "size" width/height values.  the collider will always auto-adjust (if checked on the widget) to accommodate those values.
Title: Re: Why does the collider on the Simple Textbox prefab always reset itself?
Post by: ArenMook on July 24, 2015, 10:53:29 AM
Yup, as devomage mentioned every widget has the "Auto-adjust collider" checkbox checked by default.