Hi @all, In my scene i loaded a mesh and i added a image using gui for title purpose.
but when i used the image usin gui it works perfectly as i want.
But there is an issue like that, the image comes in front of mesh which is not looks good,
I want to try it put behind the back of mesh.
as you see this playground the same case here the button comes in front of mesh what if i want to put behind the mesh???
I tried put zIndex but not worked
function loadTitleTextUI() {
// adding the titel ui
const advancedTexture =
new BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("myUI");
let image = new BABYLON.GUI.Image(
"layer",
"assets/Tvs_iQube/textures/layerText.png",
true
);
image.width = 0.35;
image.height = 0.28;
image.stretch = BABYLON.GUI.Image.STRETCH_UNIFORM;
image.verticalAlignment = BABYLON.GUI.Control.VERTICAL_ALIGNMENT_TOP;
// image.top = '-20%'
image.paddingTop = 50
image.zIndex = 1 // -1
advancedTexture.addControl(image);
}