rexUI: Dialog - How to fix dialog width and wrap text

Referring to the examples on the link on RexDialog (forked)

How do I set fixed window width and have the descriptions with wrap text ?

I tried fixed the width to 200 and added a long string to text but not working…


Here is a modified test code. See

  • line 134-136 : using scene.rexUI.wrapExpandText to wrap text game object during layout().
  • line 145 : set expandTextWidth to true when text object is wrap-able.

Thanks rexrainbow !!!