Hello everyone, is there a way that I can change the text paragraph alignment to justify in the TextBlock?
Also, when I use an MoveObservable and OutObservable to set the thumb color for slider, it only change the hover color right after I clicked in the slider, is there a way that the MoveObservable will change color without clicking it?
Edit: huh, hang on just a minute, there was an error in my PG but I tried to quickly resolve it but it seems as just now something is going on with the GUI in preview. I know they are making changing on the GUI so this might not be the best moment to check in ‘preview’. You should switch to cdn and try something like this:
// GUI
var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI(“UI”);
var rect = new BABYLON.GUI.Rectangle();
rect.width = "500px";
rect.height = "300px";
advancedTexture.addControl(rect);
var myText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ";
var tbtext = new BABYLON.GUI.TextBlock(tbtext);
tbtext.text = myText;
tbtext.textHorizontalAlignment = BABYLON.GUI.Control.HORIZONTAL_ALIGNMENT_LEFT;
tbtext.textWrapping = true;
tbtext.color = "white";
rect.addControl(tbtext);
var slider = new BABYLON.GUI.Slider();
slider.width = "220px";
slider.height = "25px";
slider.top = "250px";