Is there a way to access the TMP font material, dilate?
I am trying to access it via code, but no luck!
Is there a way to access the TMP font material, dilate?
I am trying to access it via code, but no luck!
All material properties can be accessed via scripting.
The property is called _FaceDilate. You can select the shaders in the project to see all these properties and their names.
You should be using the TextMesh Pro ShaderUtilities class to reference these properties instead of using strings.
m_sharedMaterial.SetFloat(ShaderUtilities.ID_FaceDilate,_0.1f);
Remember that some properties below to some ShaderKeyword like Outline group with the Mobile Distance Field shader and as such the ShaderKeyword has to be enabled in order for those property changes to be visible.
THANK YOU!
Hi Stephan,
When you say Visible, visible to/in what? Code? Inspector? Am I over thikning this and the code you provided all I need, from a front end aspect?
Thanks again.
Ie. If the Shader Keyword is disabled, nothing will appear so although you set the Outline to some value, unless you enable the Shader Keyword for the Outline the effect of the Outline will not be visible.