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.
-
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
/stop
the existing textBox with new text, andshow
/hide
the 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