I am working on an overhead textbox system for a project.
I am using a multiline TextBlock that has:
textVerticalAlignment = BABYLON.GUI.TextBlock.VERTICAL_ALIGNMENT_BOTTOM;
This is working good and keeps multiline text above the linked mesh
But it doesn’t seem to play nicely with resizeToFit = true;
Which I am using to “shrink wrap” the text. For now to display a bounding rectangle with isHighlighted. But I would like to place a sort of balloon there underneath the text instead once I get it working in future.
I have made an example please see here: https://playground.babylonjs.com/#XCPP9Y#8439
As the string gets longer it is no longer Bottom Aligned over top of the mesh.
Commenting out line 35 fixes the bottom alignment but breaks the resize functionality.
Is there any way to achieve this behavior while staying bottom aligned linked above the mesh?
Please let me know if you need any more details.