nine patch slice is px? percent?
passible change that 512px X 512px => 80px X 80px ?

BABYLON.GUI.Image.STRETCH_NINE_PATCH: Scale the image using a nine patch technique. You have to either define the sliceLeft, sliceRight, sliceTop and sliceBottom properties or store data into your image (in the first and last rows and columns) and call image.populateNinePatchSlicesFromImage = true to read that data. Demo here -


thank you!

In pixel based on the original image size to be independant from rescale.

I want show you example at playground…


I can’t load Image.

or can just do this?

var image3 = new BABYLON.GUI.Image("but", 

can you show me an image3 at this playground?


Hi. Take a look at how to import external assets
Then your pg will work

1 Like

Thank you!
I’m idiot.
I should have looked closely.

‘github => raw.githubusercontent’ & minus ‘blob’

It was really simple, but I was lazy.
Anyway Thanks again!


I want ‘ㅁ’ shape.
By the way, why not ‘ㅁ’ this image’s shape.
reason is pivot of slice part’s?



Bottom and right should be from origin. Also I would advise to use 2px wide band to prevent interpolation on 0.5 px.

Okey i understand!
I had to know that origin size!
Thank you! And your car look so great! :+1:

Lol the car was my first ever attempt to PBR :slight_smile: in Babylon and in 3D in general.