Search Unity

Question TMP_Input multi "onValueChanged" during copy paste

Discussion in 'UGUI & TextMesh Pro' started by imaewyn, Jul 19, 2022.

  1. imaewyn

    imaewyn

    Joined:
    Apr 23, 2016
    Posts:
    211
    Hello. I'm trying to create autosizeble input (whith height depends in text size). For this I use content size fitter and call ForceLabelUpdate() inside event onValueChanded. It works good for mannualy typing, but if i try paste some text from clipboard this event calls for each letter in copyed text and have time lag becasue have multicall my ForceLabelUpdate(). Is any way to say to input call onValueChanged only on last letter of pasted text?
     
  2. imaewyn

    imaewyn

    Joined:
    Apr 23, 2016
    Posts:
    211
  3. Jayme65

    Jayme65

    Joined:
    Dec 11, 2016
    Posts:
    94
    Interesting subject though! I have the same problem as you ;)...can you tell me if you have solved it and if so how?