Search Unity

TextMesh Pro HDR color support.

Discussion in 'UGUI & TextMesh Pro' started by Jos-Yule, Mar 16, 2020.

  1. Jos-Yule

    Jos-Yule

    Joined:
    Sep 17, 2012
    Posts:
    292
    Hello!

    I did some searching and found only one or two messages related to having HDR color fields in the TMP components.

    I edited the following files to enable it myself, but would really appreciate it if this was supported natively, as having to manually copy-paste files into the package-manager cache folder for all the folks working on our projects is sub-optimal. Would be happy to hear another way to enable HDR support without having to edit these files too, if there is one.

    TMP_SDF Overlay.shader -- just above line 8 `_FaceColor...` add `[HDR]`

    TMP_Text.cs -- just above both `m_fontColor` and `m_fontColor32` add `[ColorUsageAttribute(true, true)]`.

    This enabled the HRD color picker, and seems to be working.

    Thanks, any feedback or suggestions welcome.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    I made similar changes that will be in Preview 9 of the TMP package.

    Please test those out when Preview 9 is available and let me know if everything is working as expected.
     
    Jos-Yule likes this.
  3. Jos-Yule

    Jos-Yule

    Joined:
    Sep 17, 2012
    Posts:
    292
    Excellent, excited to see those updates, thanks!
     
    Stephan_B likes this.