- Home /
Clear a GUI.TextArea in iOS build
I'm working on a unity app which is built for iOS. It has text area. When the user type and submit the data I want to clear the data in the text area.
The text area is defined like this
questionStr = GUI.TextArea(new Rect(Screen.width-Screen.width * 3/4, Screen.height-Screen.height*3/4, Screen.width/2, Screen.height/4), questionStr, 500);
and I clear it like questionStr = ""; when the submit button is clicked.
When I play this in Unity, it get cleared and it work as expected.
But when I run this on the iPad as a iOS build, the text area doesn't get cleared after submit.
I'm not clear why it doesn't work in the iPad.
Please tell me how I can clear that text in the iOS build.
Thanks
Your answer
![](https://koobas.hobune.stream/wayback/20220613152318im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Read a sound in unity 3D triggered from an iPad 1 Answer
Unity Pro Trial - after export to iOS no realtime shadow 1 Answer
when is full initialization of mono environmentis for ios? 0 Answers
Xcode hook up with Unity 1 Answer
How to check performance of the game in the device made in Unity 3d 3 Answers