Dynamically create Texture2D that is readable

I want to create a Texture2D dynamically which is readable. There doesn't appear to be any way to set the IsReadable property to true. The docs reference IsReadable, but I can't even find it declared anywhere. I have

Texture2D tex = new Texture2D(width, height, TextureFormat.RGB24, false);

The size of the Texture is runtime dependent, and so I can't create it using a TextureImporter. I also can't clone an existing Texture2D which is readable because I need to change the size.


Your code is fine; you don't need to do anything extra.

Having the same issue.

protected static void makeReadable(Texture2D textures, bool enabled )
foreach (Texture2D texture in textures)
string path = AssetDatabase.GetAssetPath(texture);
TextureImporter textureImporter = AssetImporter.GetAtPath(path) as TextureImporter;
textureImporter.isReadable = enabled;

this does not help since I created a new Texutre. I want to save this new Texture as PNG - but it says that I cannot save it because read is not enabled.

so… bummer.