- Home /
Texture2D.GetTextureRawData doesnt work outside the editor ?
When i try to use it on build, i get an array with 0 length, works fine on editor.
I changed read/write to enabled and is working now, thanks. But why, i'm not modifying the texture ?
Answer by FortisVenaliter · Jan 27, 2016 at 06:57 PM
Can you provide some code? Do you have read/write enabled in the texture import settings? You're giving us very little information to go on.
To answer comment above:
Because you are reading data. It's called read/write, not just write. It's because Unity uses an internal compression for the texture data. To read/write, it also needs to keep a copy of the original.
Your answer
Follow this Question
Related Questions
How to make my sprite face way Im walking 1 Answer
Sprite rendering texture as one solid color 1 Answer
creating 2d table\chess board\2d array 2 Answers
Anti aliasing with sprites 0 Answers