accessing new isReadable flag ?

Is there a way to check the new “isreadable” flag from a script? Something like Texture2D.isReadable (doesn’t exist, I checked)?

If there is, can we modify it? Some of my editor scripts require GetPixel() and SetPixel() to work, and I need a way to catch it if isReadable isn’t set so I can give the user a proper error message.

But so far, I’m drawing blanks.

isReadable only exists on the texture importer.

but if isReadable isn’t set the functions will fail and if they fail they will indicate this somehow, I would guess it to be it null return or an error thrown that you could catch through try - catch