Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Edit default unity input field / progress bar styles

Discussion in 'UI Toolkit' started by Max-0, Jun 27, 2023.

  1. Max-0

    Max-0

    Joined:
    Jun 10, 2021
    Posts:
    18
    upload_2023-6-27_17-56-7.png
    How can I edit or remove the outline and background that's around the text in input fields and in progress bars?
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,769
    Make a style for the element and set (right click the style -> set) on the styles Unity is applying to, even if its just the default value.

    If nothing is set for the styles that the default Unity styles apply, they'll still apply.
     
  3. Max-0

    Max-0

    Joined:
    Jun 10, 2021
    Posts:
    18
    I don't really know what you mean? I tried right clicking the style but it doesn't show apply
    upload_2023-6-29_19-58-25.png
     
  4. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,769
    Not the style itself, but the individual style's properties. As in, go the background properties, Set them to default values, etc etc.
     
  5. Max-0

    Max-0

    Joined:
    Jun 10, 2021
    Posts:
    18
    Ah I think I see what you're saying, but no style applies to the box in the text field that you enter the text into, so I'm not sure how to change it
    upload_2023-6-29_20-22-43.png
     
  6. Max-0

    Max-0

    Joined:
    Jun 10, 2021
    Posts:
    18
    I've tried adding overrides for the styles of that box, but they are disabled.
    upload_2023-6-29_20-24-17.png
     

    Attached Files:

  7. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,769
    Max-0 likes this.