I’m trying to put some text on my ground like in the images. In the playground I visualised the grey path like in the picture, now I want to put the numbers on the path. But how I wanted to do it doesn’t work. Can somebody help me with putting the numbers on the ground(path)
This will allow you to create the layout you are interested in an preview it with no coding experience required.
I will whip up an example for you in the editor but thought I’d show it to you as well as a pointer in the right direction. Once you are happy with a GUI you create you can save it to the snippet server and then load it onto your ground path.
It will look something like this:
let guiTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateForMesh("mesh to project onto", groundSizeX, groundSizeX);
await guiTexture.parseFromSnippetAsync("your_snippet_url_no_#");
Sorry to hear that the documentation does not cover the features you were looking for. Please list the things you were looking for that you did not find in Dynamic Textures | Babylon.js Documentation
Hey there, here’s an updated example for your playground to make it more like the picture. Note, I swapped all the x and y values and all of the width and height values to make things a little easier.
At first I wanted like the picture but I want a button to turn around the numbers by 90 degrees. Is there a property or anything else that can do that?
Ooh, okay, I get you now, but I don’t think there’s any properties that would make that kind of transformation on the texture - because it’s not the texture that’s rotating, it’s the individual parts of the texture where each number is that would rotate.
I think it would be easier to make that texture with the rotated text with an image editor or with the new GUI editor that lets you position and rotate the text how you want