How can i resize a sprite to the shape of another sprite?

For example if there is a square and I want to asign a new texture to it that’t bigger than the square - how can the new texture have the same size like the square before and does not get resized to the size of origin? Thanks for your help :slight_smile:

If SpriteA is your original sprite and SpriteB is your new sprite then you can just use the following to make SpriteB’s size equal to that of SpriteA:

SpriteB.bounds = SpriteA.bounds;

Alternatively, if you only want to change the texture, you could just use Sprite.texture