Gui editor gives error when trying to switch from % to PX in position of TextBlock

Hey guys, thanks for GUI Editor, it’s my first day using it, seems to be very helpful, but I’m getting this error when tryng to switch from % back to PX in position of TextBlock. It’s the text called Swirl in the snippet. Reloading editor did not help.

Screenshot 2023-06-01 at 20.57.53

GUI saved with ID: NT6ZQX. The ID was copied to your clipboard.

This is the console.log, it seems that measureText is not defined for some reason

Recreating TextBlock is a workaround to this :slight_smile:

Hello! Thanks for the report and the snippet, looking into it right now :smiley:

Fix on: [GUI Editor] Fix conversion from % to px throwing error by carolhmj · Pull Request #13930 · BabylonJS/Babylon.js (github.com)

5 Likes

Thanks for a super fast fix! :wink:

1 Like