2D Toolkit Forum

2D Toolkit => Support => Topic started by: RetrocadeNet on September 02, 2014, 09:18:55 pm

Title: Easy method to fit UI Text Input collider from code
Post by: RetrocadeNet on September 02, 2014, 09:18:55 pm
Is there any easy method to refit the collider of UI Text Input from code, the same way you can do in Unity Editor GUI? Of course, technically speaking this function lies under the UI Item script but I haven't found such method there either.
Title: Re: Easy method to fit UI Text Input collider from code
Post by: unikronsoftware on September 03, 2014, 12:17:46 pm
If you look at the layout prefab vs the normal prefab, it does this.