Search Unity

Bug Text Mesh Pro Material Preset doesn't display renamed materials

Discussion in 'UGUI & TextMesh Pro' started by laurienash, Dec 8, 2021.

  1. laurienash

    laurienash

    Joined:
    Mar 15, 2013
    Posts:
    61
    Hi,

    I'm finding that if I change the name of a material, it no longer appears in the material preset dropdown. I've checked out a couple of tutorials and I seem to be doing it fine, so just want to check if there's a workaround or if I've missed something?

    I'm working in Unity 20201.1 HDRP.

    These are the steps:
    Right click on the material, and select Create Material Preset
    upload_2021-12-8_17-41-33.png

    This creates the material and automatically assigns it
    upload_2021-12-8_17-42-29.png

    If I then select the newly created material in the Project window and rename it - it disappears in the material preset dropdown.

    upload_2021-12-8_17-43-44.png

    Thanks,
    Laurien
     

    Attached Files:

  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The behavior is expected.

    In order to find the material presets, a naming convention is necessary. The material preset must be named / prefix with the font asset name where for example if the font asset is named "Arial SDF" then the material preset must be named something like "Arial SDF - Outline" where the " - Outline" to enable you to identify the material.

    This naming convention is necessary to avoid having to load every single material in the project in order to find the materials that use the same atlas texture.