Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Set Raw Pixels and Get Raw Pixels Request/Exists?

Discussion in '2D' started by TBbadmofo, Oct 20, 2017.

  1. TBbadmofo

    TBbadmofo

    Joined:
    Apr 1, 2014
    Posts:
    14
    Is there anything like GetPixels(...) and SetPixels(...) but using byte[] instead of color[]? I know there's GetRawTextureData() but it returns the whole texture and then there's no way to set anything raw. GetRawTextureData() is leagues faster than GetPixels(...). This would be pretty useful when working with uncompressed textures.