blog games developers documentation portfolio gallery

More in this category:

Import Settings

Make sure that the Texture2D you want to change, has the Read/write enabled flag set in the Import Settings and the Texture format should be set to . If it hasn't you will get one of these errors:

Instantiating a non-readable 'DSC03519' texture is not allowed!
Please mark the texture readable in the inspector or don't instantiate it


UnityException: Texture 'DSC03519' is not readable, the texture memory
can not be accessed from scripts. You can make the texture readable in
the Texture Import
Settings.

The format in the Import Settings is best set to RGBA32. Using a compressed format will give one of these errors:

Can't resize to a compressed texture format


Unsupported texture format - needs to be ARGB32, RGBA32, RGB24 or Alpha8







follow us