Automatic resize all the textures functions of device resolution

Hi,
Is there any way to automatically resize all the textures, functions of device resolution, while loading the level ?

I need something like this :

Anyone?

Hi, no answers… is there any tutorial for this?

You can’t do texture resizing at runtime… You can prepare them in the editor and then choose what to load at runtime depending on the device.

yes but there is no difference between ios device:

Unity provides: Web / Standalone / iPhone

but there are differences between iphone 3G and iPad, and even iPad2 that has more memory (I could have 256x256 textures for ipad and 512x512 textures for iPad 2)

If anyone from UNITY reads this thread, it should be nice in next update of unity to add as many device for textures, or a way to do it by script as mentioned above.

When you have questions about textures, you should start by looking at the corresponding class in the documentation : Texture2D.
Texture2D.Resize()
You can resize textures at runtime, you can create textures at runtime, you can create atlases at runtime…

It doesn’t seem a good idea to resize textures at runtime to adapt for different devices though. No need to make people download 512x512 textures if you use 256x256.

so how can i get a texture asset and resize it ?
If i do this, does my asset be resized forever, or does it record the previous size ?

Use the compression / rescale settings of each texture asset in your project folder. This way your original bitmaps are untouched.

how can i do it ?

read this : http://unity3d.com/support/documentation/Components/class-Texture2D.html

thanks but it doesn’t give me a script example on how i can resize an asset in java script

i need to put all the textures in a variable and then resize each of one.

if i could get an example it could help me