Skip to content

Commit

Permalink
Fixed bug Default Text Type
Browse files Browse the repository at this point in the history
  • Loading branch information
AnhPham committed Jan 24, 2025
1 parent 65cfbfd commit bab06d9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions SSv5/Assets/ThirdParties/SS/Screen/Editor/TooltipGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,14 @@ bool GenerateScene()
return false;
}

var textClass = GetAssemblyType("TMPro.TextMeshProUGUI");
if (textClass == null)
if (textType == TextType.TextMeshPro)
{
Debug.LogWarning("TextMeshPro package is not installed yet");
return false;
var textClass = GetAssemblyType("TMPro.TextMeshProUGUI");
if (textClass == null)
{
Debug.LogWarning("TextMeshPro package is not installed yet");
return false;
}
}

SavePrefs();
Expand Down

0 comments on commit bab06d9

Please sign in to comment.