Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    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.
     
unityunity