Search Unity

InputField with ContentSizeFitter

Discussion in 'UGUI & TextMesh Pro' started by Martin_Gonzalez, Jun 13, 2020.

  1. Martin_Gonzalez

    Martin_Gonzalez

    Joined:
    Mar 25, 2012
    Posts:
    361
    Hi!
    I'm trying to create the behaviour that is attached as a gif. I need to grow the input field size with the text size, right now is working but since I need a Vertical/HorizontalLayout to let the size of the container grow i have two problems.

    1) The placeholder
    2) The input caret

    I did a quick test putting the caret gameObject inside the text object with stretch and seems to work, but this happen as a an internal tmp input field behaviour.
    Is there any fix for this?
     

    Attached Files: