Hello Guest

Author Topic: Easy method to fit UI Text Input collider from code  (Read 4250 times)

RetrocadeNet

  • Newbie
  • *
  • Posts: 4
    • View Profile
Easy method to fit UI Text Input collider from code
« 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Easy method to fit UI Text Input collider from code
« Reply #1 on: September 03, 2014, 12:17:46 pm »
If you look at the layout prefab vs the normal prefab, it does this.