I added a Text Mesh Pro component to a GameObject, and applied a font, KGRHMain.
I would like to programatically change the Material used in the Mesh Renderer, from the default material to KGRHMain Shadows.
When I do this manually, I get exactly the result that I want. But when I try doing this programatically, the Material used in the Mesh Renderer doesn’t change.
I’ve tried many variations, but can’t get it to work. I think I’m lacking some conceptual understanding of how to change Materials using Material Presets.
How can I change the Material in the Mesh Renderer to use the Material Preset that I want? (KGRHMain Shadows)