Fix splash text size

This commit is contained in:
2026-01-30 23:25:53 -07:00
parent 56ec5f04c4
commit ce079fac41
2 changed files with 2 additions and 1 deletions

View File

@@ -3660,7 +3660,7 @@ MonoBehaviour:
m_EditorClassIdentifier: Assembly-CSharp::BouncyText m_EditorClassIdentifier: Assembly-CSharp::BouncyText
frequency: 8 frequency: 8
minSize: 0 minSize: 0
maxSize: 2 maxSize: -2
add: 1 add: 1
--- !u!1 &1314896801 --- !u!1 &1314896801
GameObject: GameObject:

View File

@@ -16,6 +16,7 @@ public class BouncyText : MonoBehaviour
text = GetComponent<TextMeshProUGUI>(); text = GetComponent<TextMeshProUGUI>();
if (add) if (add)
{ {
text.ForceMeshUpdate();
startSize = text.fontSize; startSize = text.fontSize;
text.enableAutoSizing = false; text.enableAutoSizing = false;
} }