Search Unity

  1. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  2. Unity 2017.2 beta is now available for download.
    Dismiss Notice
  3. Unity 2017.1 is now released.
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice
  6. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice

GetPixels errors with PVRTC compression enabled

Discussion in 'iOS and tvOS' started by _Valek_, Nov 8, 2016.

  1. _Valek_

    _Valek_

    Joined:
    Oct 4, 2016
    Posts:
    3
    Hello!

    When I try to get pixel data from spritesheet with PVRTC compression on IOS by GetPixels I see the following errors:
    Invalid texture format: 33
    Image invalid format!
    Unsupported texture format - needs to be ARGB32, RGBA32, BGRA32, RGB24, Alpha8, RGBAFloat, RGBAHalf or one of supported compressed formats.
    UnityEngine.Texture2D:GetPixels(Int32, Int32, Int32, Int32)

    Although it works with RGBA Compressed ETC2.
    Texture is 2048x2048, read/write is enabled.
    There`s nothing about it in documentation. How can I deal with it?

    Thanks.
     
    Last edited: Nov 8, 2016
  2. _Valek_

    _Valek_

    Joined:
    Oct 4, 2016
    Posts:
    3