Creating a 9 Patch like scalable image

I am trying to create an image for menus using the 9 patch method so that it can be scaled to any size without destroying the edges and corners. What is this called in Unity and what type of .PNG/file do I need to create for Unity to understand this type of function?

2 Answers

2

The GUI skins images are 9 patch images (once you understand what the parameters are).

You can also just make the Mesh with the 16 requisite vertices and UVs (and 18 triangles)

The menu will be 2D on top of the 3D world. So I would think we are going to use the GUI Skin route. My question is, what do I need to do to the image in Photoshop to make it usable by the GUI Skin and stretch correctly? For example, I can output a "name.9.png" with the black 1 pixel border for use with 9 patch. Is there a specific file type I need to use with GUI Skin? Or is there something special I need to do similar to the black 1 pixel border for use with GUI Skin?

public double
{
get

{
double sum = 0.0;
foreach(DMDetailDialogBudget budget in budgets)
sum += budget.;