How do i stretch a sprite to fill a space only beyond its border ;without using Unity UI components

Hi, I am attempting to stretch a sprite only beyond its borders to fill a space , using c# and no Unity UI components.


I have no had any luck in accomplishing this.

is there a way to do this ?

Hello there, you need to calculate the size of the sprite using the screen size to fill the desired space:

Vector2 screenSize = new Vector2 (Screen.width, Screen.height)

Using this you can resize any sprite, cheers.