Search Unity

InputField onfocus and highlighted sprite are the same

Discussion in 'UGUI & TextMesh Pro' started by Gardosen, Nov 16, 2014.

  1. Gardosen


    Oct 25, 2014
    Hello Everyone,

    since some weeks i am using the new 4.6 Beta and i fallen in love with it.
    The new GUI System is amazing.

    But sadly i have a little Problem.
    The possiblities for handling sprites on a Button are very nice, you can easily select which sprite should be shown on which state (Highlight, Pressed, Normal, Deactivated).

    This System is also available for the InputFields, but sadly i am missing one option (or better, one option seems to be the same like highlighted) the OnFocus.
    i would like to change the sprite of the field which has the cursor active, but at the moment the sprite who is used for that, is the one who is used for highlighted.

    i also tought about a sourcebased solution but (maybe im just tired) i dont find a solution for this.

    @Everyone: if someone knows a way how to solve this sourecode based, i would be very happy for some tips
    @Unity: If you would improve the native integration for a InputField that the sprite for a focused inputfield can be setted it would be awesome :)