Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to set Input Field static start string thats unchangeable?

Discussion in 'UGUI & TextMesh Pro' started by zevonbiebelbrott, Nov 9, 2023.

  1. zevonbiebelbrott

    zevonbiebelbrott

    Joined:
    Feb 14, 2021
    Posts:
    118
    I want my input field to display a string value thats unchangeable, but text can be appended to it.
    My use case:
    userName: inputted text here

    Bold is unchangeable and cannot be deleted
    Italic is text entered by the user and can be changed/deleted at will.

    I understand that I can separate the two and make the username a static TMPUGUI. This is not desired.

    Please only answer if you know how to achieve the feature using only 1 TMP Input Field.

    Thanks
     
  2. zevonbiebelbrott

    zevonbiebelbrott

    Joined:
    Feb 14, 2021
    Posts:
    118
    I figured it out thanks