Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey buddy! The spritesheet has several sprites to be used as 9-sliced object. I'm not an expert in Unity but try this:

  1. Import your spritesheet into Unity by dragging and dropping it into your project folder.
  2. Create a new Sprite Renderer object by right-clicking in the Hierarchy window and selecting "2D Object" > "Sprite".
  3. Assign your spritesheet to the Sprite Renderer by dragging and dropping it onto the "Sprite" field in the Inspector window.
  4. In the Sprite Editor window, select the sprite you want to 9 slice and click the "Slice" button in the top left corner.
  5. In the Slice menu, select "Grid by Cell Size" and set the cell size to the dimensions of your sprite.
  6. Use the Slice Tool to create a 3x3 grid over your sprite. The corner sections should be small and the middle sections should be the size of the sprite.
  7. Select the corner sections and set their "Sprite Mode" to "Single" in the Inspector window.
  8. Select the middle sections and set their "Sprite Mode" to "Sliced" in the Inspector window.
  9. Adjust the "Border" property for each sliced section to control how much of the sprite is stretched when it is resized.
  10. Apply the changes and save your sliced sprite.