Commit 8159c09 1 parent 2b44837 commit 8159c09 Copy full SHA for 8159c09
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ protected override void OnEnable()
56
56
if ( graphic is TextMeshProUGUI )
57
57
{
58
58
_prevLossyScaleY = transform . lossyScale . y ;
59
- UIExtraCallbacks . onAfterCanvasRebuild += CheckSDFScaleForTMP ;
59
+ Canvas . willRenderCanvases += CheckSDFScaleForTMP ;
60
60
UIExtraCallbacks . onScreenSizeChanged += SetVerticesDirtyForTMP ;
61
61
}
62
62
#endif
@@ -69,8 +69,8 @@ protected override void OnEnable()
69
69
protected override void OnDisable ( )
70
70
{
71
71
#if TMP_ENABLE
72
+ Canvas . willRenderCanvases -= CheckSDFScaleForTMP ;
72
73
UIExtraCallbacks . onScreenSizeChanged -= SetVerticesDirtyForTMP ;
73
- UIExtraCallbacks . onAfterCanvasRebuild -= CheckSDFScaleForTMP ;
74
74
#endif
75
75
76
76
MaterialRepository . Release ( ref _material ) ;
You can’t perform that action at this time.
0 commit comments