Skip to content

Commit

Permalink
fix: TextMeshPro not work TMP_SubMeshUI
Browse files Browse the repository at this point in the history
close #94
  • Loading branch information
mob-sakai committed Sep 8, 2020
1 parent 7ec9042 commit 56995e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Packages/SoftMaskForUGUI/Scripts/SoftMaskable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ void ISerializationCallbackReceiver.OnAfterDeserialize()
{
if (!current) return;
if (!graphic) return;
if (graphic.name.Contains("TMP SubMeshUI")) return;
if (!graphic.material) return;
if (!graphic.material.shader) return;
if (graphic.material.shader.name != "Hidden/UI/Default (SoftMaskable)") return;
Expand Down

0 comments on commit 56995e9

Please sign in to comment.