Search Unity

Scaling png according to sprite siz

Discussion in '2D' started by MaikenRoskilde, Mar 28, 2015.

  1. MaikenRoskilde

    MaikenRoskilde

    Joined:
    Mar 28, 2015
    Posts:
    22
    I have images in the size of 256x256 pixels.
    I would like to put them into sprites.
    I would like to leave a bottom space for some height (like 20%).
    That would mean that I need to rescale the image on the fly, right?
    Can I do this in code in some way?