Search Issue Tracker
Duplicate
Votes
1
Found in
4.1.3f3
Issue ID
544949
Regression
No
If SkinStyle is used with TextField it turns into a multiline TextArea
If SkinStyle is used with TextField it turns into a multiline TextArea.
If no style is set (default), it is working as expected.
TRY THIS WITH ANDROID and you'll see that the TextField
with style leaves TouchKeyboard open after Return and makes it
almost unusable...
Comments (1)
-
dazoe
Mar 26, 2015 07:41
So, I've been trying to figure out why my TextField's were becoming multiline. Turns out that if GUILayout.TextField(string, int, GUIStyle) is used it is calling the internal DoTextField with multiline set to true instead of false. You can see this using ILSpy...
public static string TextField(string text, int maxLength, GUIStyle style, params GUILayoutOption[] options)
{
return GUILayout.DoTextField(text, maxLength, true, style, options);
}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
This is a duplicate of issue #481370