Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

9-Slice Sprites

Discussion in '2D' started by afshin_a_1, Feb 3, 2017.

  1. afshin_a_1

    afshin_a_1

    Joined:
    Apr 26, 2015
    Posts:
    50
    hello everyone. i'm making a 2d game. i want to be able to resize some of my 2d objects with sprite renderer component. as far as i know we can do this by moving objects into a canvas, using image component, change image type to sliced and ...etc.
    but i don't want this, i don't want using canvases. do we have any feature in unity for this?
    do you have any code any idea how i can achieve this for sprites?
    I welcome and appreciate any help :)
     
    Last edited: May 27, 2017