Skip to content

Commit 6c7f0f6

Browse files
authored
FIX: Change TMP text wrap to supported enum property instead of obsoleted boolean property (#2442)
1 parent d0c70db commit 6c7f0f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Assets/QA/Tests/Core Platform Menu/SceneMenu.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,13 @@ void BuildSearchBar(Transform parent)
382382
var ph = MakeText("Placeholder", textArea.transform, "Search scenes\u2026", 18,
383383
kTextSecondary, TextAlignmentOptions.MidlineLeft);
384384
ph.fontStyle = FontStyles.Italic;
385-
ph.enableWordWrapping = false;
385+
ph.textWrappingMode = TextWrappingModes.NoWrap;
386386
ph.overflowMode = TextOverflowModes.Ellipsis;
387387
Stretch(ph.gameObject);
388388

389389
var txt = MakeText("Text", textArea.transform, "", 18,
390390
kTextPrimary, TextAlignmentOptions.MidlineLeft);
391-
txt.enableWordWrapping = false;
391+
txt.textWrappingMode = TextWrappingModes.NoWrap;
392392
Stretch(txt.gameObject);
393393

394394
var input = bar.AddComponent<TMP_InputField>();
@@ -614,7 +614,7 @@ void BuildSceneButton(Transform parent, SceneEntry entry)
614614
var nameT = MakeText("Name", go.transform, entry.displayName, 15, kTextPrimary,
615615
TextAlignmentOptions.Center);
616616
nameT.overflowMode = TextOverflowModes.Ellipsis;
617-
nameT.enableWordWrapping = false;
617+
nameT.textWrappingMode = TextWrappingModes.NoWrap;
618618
var nr = Rect(nameT);
619619
nr.anchorMin = new Vector2(0.04f, 0.38f);
620620
nr.anchorMax = new Vector2(0.96f, 0.94f);
@@ -626,7 +626,7 @@ void BuildSceneButton(Transform parent, SceneEntry entry)
626626
var subT = MakeText("Sub", go.transform, entry.subcategory, 11, kTextSecondary,
627627
TextAlignmentOptions.Center);
628628
subT.overflowMode = TextOverflowModes.Ellipsis;
629-
subT.enableWordWrapping = false;
629+
subT.textWrappingMode = TextWrappingModes.NoWrap;
630630
var srr = Rect(subT);
631631
srr.anchorMin = new Vector2(0.04f, 0.06f);
632632
srr.anchorMax = new Vector2(0.96f, 0.38f);

0 commit comments

Comments
 (0)