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.

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:
    290
    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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,581
    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:
    290
    Excellent, excited to see those updates, thanks!
     
    Stephan_B likes this.