-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Could you provide a simplest, run-able test code for this case? |
Beta Was this translation helpful? Give feedback.
-
SOLUTION: Had the alphas set to 0 while I was doing the resizing. Changed to make sure alphas were set back to 1 before the resizing calculations and it resizes/re-positions perfectly now. EDIT: Still somewhat acting up: I need to be able to resize/re-position the TextInput object while its invisible on the screen (when the player is not using it). Not working well switching from setAlpha(0) to setAlpha(1). |
Beta Was this translation helpful? Give feedback.
SOLUTION: Had the alphas set to 0 while I was doing the resizing. Changed to make sure alphas were set back to 1 before the resizing calculations and it resizes/re-positions perfectly now. EDIT: Still somewhat acting up: I need to be able to resize/re-position the TextInput object while its invisible on the screen (when the player is not using it). Not working well switching from setAlpha(0) to setAlpha(1).
SOLUTION #2: instead of setting the alpha, type: this.inputText.node.style.visibility = “hidden"; // or “visible”
With this you can resize/re-position the InputText object all you want, it doesn't matter if it's "hidden" or "visible"