Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
# Visual Code cache directory
.vscode/

# Jetbrains IDE
*.idea/

# Gradle cache directory
.gradle/

Expand Down
8 changes: 8 additions & 0 deletions Assets/RTLTMPro/Scripts/Editor/RTLDefaultControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ public static GameObject CreateInputField(Resources resources)

RTLTextMeshPro text = childText.AddComponent<RTLTextMeshPro>();
text.text = "";
#if UNITY_6000_0_OR_NEWER
text.textWrappingMode = TMPro.TextWrappingModes.Normal;
#else
text.enableWordWrapping = false;
#endif
text.extraPadding = true;
text.richText = true;
text.autoSizeTextContainer = true;
Expand All @@ -166,7 +170,11 @@ public static GameObject CreateInputField(Resources resources)
placeholder.fontSizeMin = 10;
placeholder.fontSizeMax = 100;
placeholder.fontStyle = FontStyles.Italic;
#if UNITY_6000_0_OR_NEWER
placeholder.textWrappingMode = TMPro.TextWrappingModes.Normal;
#else
placeholder.enableWordWrapping = false;
#endif
placeholder.extraPadding = true;
placeholder.alignment = TextAlignmentOptions.Right;

Expand Down