File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ void Init()
9999
100100 void OnCreateNewMaterial ( Material mat )
101101 {
102- mat . SetFloat ( ShaderUtilities . ID_TextureWidth , mainTexture . width ) ;
103- mat . SetFloat ( ShaderUtilities . ID_TextureHeight , mainTexture . height ) ;
102+ mat . SetFloat ( ShaderUtilities . ID_TextureWidth , fontAsset . atlasWidth ) ;
103+ mat . SetFloat ( ShaderUtilities . ID_TextureHeight , fontAsset . atlasHeight ) ;
104104 mat . SetFloat ( ShaderUtilities . ID_GradientScale , _gradientScale ) ;
105105 mat . SetFloat ( ShaderUtilities . ID_WeightNormal , fontAsset . normalStyle ) ;
106106 mat . SetFloat ( ShaderUtilities . ID_WeightBold , fontAsset . boldStyle ) ;
Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2+ using TMPro ;
23using UnityEngine ;
34
45namespace FairyGUI . Utils
You can’t perform that action at this time.
0 commit comments