Show/Hide existing textbox rather than destroy #289
Replies: 2 comments
-
|
In your case, if this textbox is the top-most ui panel, you can simply use Moreover |
Beta Was this translation helpful? Give feedback.
-
|
Bug in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I see here that you can use
textBox.destroy()to destroy a textBox after use.But I want to be cognizant of performance, so I'd prefer to create a single textBox once, then
start/stopthe existing textBox with new text, andshow/hidethe existing textBox as needed.I don't see these methods in the textBox docs.
this.rexUI.hide(this.textBox)andthis.textBox.hide()produce the following error:Uncaught TypeError: Cannot read properties of undefined (reading 'parent')
at
My code and attempts:
Parent scene:
Dialogue Component:
Beta Was this translation helpful? Give feedback.
All reactions