Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to override standard text styling tags ? (bold, underline, etc ...)

Discussion in 'UGUI & TextMesh Pro' started by HardisGroupBAG, Jan 11, 2022.

  1. HardisGroupBAG

    HardisGroupBAG

    Joined:
    Jun 3, 2019
    Posts:
    6
    Hello!
    I'd just like to edit the default styles for <b>, <u>, <i> etc ... without making a custom style (and overweight my texts with things like this <style="customBold">hohoho</style>).
    I can't find any docs about it. However, it seems to me that it should be an elementary option
    Many thanks !
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    How do you want to override them?

    Can you provide more information on what this override would be?
     
    HardisGroupBAG likes this.
  3. HardisGroupBAG

    HardisGroupBAG

    Joined:
    Jun 3, 2019
    Posts:
    6
    thanks @Stephan_B for your reply,

    for a quick example, I'd like to override the default Bold style "<b>" with using another color
    Like in Html CSS Style when you do that on default tags :


    b { color:red;}
     
  4. HardisGroupBAG

    HardisGroupBAG

    Joined:
    Jun 3, 2019
    Posts:
    6