Search Unity

Bad Quality importing images in Android at runtime

Discussion in 'Scripting' started by KepleriansTeam, Feb 1, 2015.

  1. KepleriansTeam

    KepleriansTeam

    Joined:
    Mar 14, 2014
    Posts:
    31
    Hi!

    I am developing an app, where i need to have the 100% Quality of the imported image. I am using the plugin "Android Native", and the Texture2D result after doing this code, is an image with worse quality than the original.

    Code (CSharp):
    1.   byte[] decodedFromBase64 = System.Convert.FromBase64String(ImageData);
    2. _bytes = decodedFromBase64;
    3. _image = new Texture2D(1, 1, TextureFormat.ARGB32, false);
    4. _image.LoadImage(decodedFromBase64);
    The Quality settings are Full Res. If I use an image that is inside de project in the build, the quality is perfect. I would need the same when importing. It's posible? Or is there any limitation with android here?

    Thank you :)

    Edit:(solved) i needed to change the max size import in editor settings of the plugin...
     
    Last edited: Feb 1, 2015