- Home /
Access texture from script
Ok, i thought this would be easier than its turning out to be. Im loading a texture using Resources Load, then i need to change the size. It says the texture is not readable, and the only thing i see on other questions is "Simply check the isReadable flag" of which i do not see... In the ref, i see a Read/Write flag in advances only..tried this, the second i run the game it resets to Texture, as the ref states unity does this for you. I must be missing something very simple.
My "texture" is just a 8x8 pixel box, completely black.
First attempt at Texture2D, so i am very new to this. Any help is appreciated.
Answer by Eric5h5 · Mar 11, 2012 at 01:10 AM
It's the Read/Write enabled option. It used to be called IsReadable. Just make sure it's checked (and click Apply).
AHHH,,,twas simple after all. I didn't hit the apply button, lol. After all that time adding the apply in code, forgot it in inspector...Thanks Eric!
Your answer
Follow this Question
Related Questions
Why don't I see any "readable" checkbox in a texture's import settings? 1 Answer
Create / Modify Texture2D to Read/Write Enabled at Runtime 3 Answers
Dynamically create Texture2D that is readable 2 Answers
Reading pixels from texture2D (how to make texture readable?) 2 Answers
Create Texture2D and assign image to it through a script 1 Answer