If you are creating images or altering them in real-time you may need to resize them at some point, so armed with Unity3d’s new GetPixelBilinear(float,float) function we can do a reasonable job of scaling an image at runtime. The function below “ScaleTexture” is written in c#, it takes 3 arguments and should be used as such:-

Returned Image(Texture 2d)= ScaleTexture(Source Image(Texture2D),Target Width(Int),Target Height(Int));

76771 Total Views 7 Views Today