Search Unity

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