Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Getting only center part in 9 Slicing

Discussion in '2D' started by wfukhgqtnopptaligx, Oct 19, 2022.

  1. wfukhgqtnopptaligx

    wfukhgqtnopptaligx

    Joined:
    Oct 19, 2022
    Posts:
    2
    Hi im trying to get a image with 9 slicing working in the canvas as a UI, but I only getting the center part of the image. Have tried to start a new project and its working there but not in this project but i dont know why.

    So the problem is probably a setting somewhere to get this working, any one got a hint on what can be the problem?

    Here are the settings for the image and the holding game object and 9 slicing in the sprite editor.
     

    Attached Files:

  2. wfukhgqtnopptaligx

    wfukhgqtnopptaligx

    Joined:
    Oct 19, 2022
    Posts:
    2
    Found the solution, Had to change Reference pixels per unit in the canvas