We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01624a3 commit 024fc72Copy full SHA for 024fc72
Assets/Scripts/Extensions/TextMeshPro/TMPFont.cs
@@ -99,8 +99,8 @@ void Init()
99
100
void OnCreateNewMaterial(Material mat)
101
{
102
- mat.SetFloat(ShaderUtilities.ID_TextureWidth, mainTexture.width);
103
- mat.SetFloat(ShaderUtilities.ID_TextureHeight, mainTexture.height);
+ mat.SetFloat(ShaderUtilities.ID_TextureWidth, fontAsset.atlasWidth);
+ mat.SetFloat(ShaderUtilities.ID_TextureHeight, fontAsset.atlasHeight);
104
mat.SetFloat(ShaderUtilities.ID_GradientScale, _gradientScale);
105
mat.SetFloat(ShaderUtilities.ID_WeightNormal, fontAsset.normalStyle);
106
mat.SetFloat(ShaderUtilities.ID_WeightBold, fontAsset.boldStyle);
Assets/Scripts/Utils/Html/HtmlPageContext.cs
@@ -1,4 +1,5 @@
1
using System.Collections.Generic;
2
+using TMPro;
3
using UnityEngine;
4
5
namespace FairyGUI.Utils
0 commit comments